Skip to content

Instantly share code, notes, and snippets.

View nickbclifford's full-sized avatar

Nick Clifford nickbclifford

View GitHub Profile
@michaelgira23
michaelgira23 / stringToFromCharCode.js
Last active March 2, 2018 21:42
JavaScript string "obfuscator." CAUTION: *This is only a joke! Do not actually use!*
const string = process.argv.slice(2).join(' ');
let output = '';
string.split('').forEach((value, index) => {
if (index !== 0) {
output += ' + ';
}
output += `String.fromCharCode(${value.charCodeAt(0)})`
});