Last active
March 8, 2019 08:30
-
-
Save kenpusney/ae15307a88903036434389051e9e8faa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const REPLACEMENT = "1234590" | |
const ORIGINAL = "lzeasgo" | |
const MATCHER = new RegExp("["+ORIGINAL+"]", "ig") | |
module.export = function (text) { | |
return text.replace(MATCHER, function(c) { | |
return REPLACEMENT.charAt(ORIGINAL.indexOf(c.toLowerCase())) | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "b14ckc0d3", | |
"version": "0.0.1", | |
"description": "Black code", | |
"main": "b14ckc0d3.js", | |
"author": "KimmyLeo <kenpusney@gmail.com>", | |
"license": "MIT" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can replace "v" with "7"