Built for use in NodeJS although you can modify
module.exports = l33tify;
to
export default l33tify;
to use this in any JavaScript application.
const del33t = require('./del33t'); // Require the .js file
const strangeWord = "h0vs*";
console.log("Normal...ish words:", del33t(strangeWord));
/*
Normal...ish words: [
'hovsi', 'hovsu',
'hovsa', 'hovse',
'hovsi', 'housi',
'housu', 'hovsu',
'housa', 'hovsa',
'hovse', 'house' <-- found it
]
*/
Letters are converted based on the dictionary. The dictionary is found in del33t.js
and you can add or remove letter translations by
adding or removing to the d1ct10n4ry object.
const d1ct10n4ry = {
a: ["4", "@", '*'],
b: ['8'],
e: ['3', '*'],
f: ['ph'],
g: ['6'],
i: ["1", "!", "l", "|", '*'],
l: ["1", "!", "|"],
o: ['0', '*'],
s: ['5', 'z', '$'],
t: ['7', '+'],
u: ['v', '4', '*'],
}