Skip to content

Instantly share code, notes, and snippets.

@LuxXx
Created January 8, 2017 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuxXx/11f4455c35ef09efb87b99889f786934 to your computer and use it in GitHub Desktop.
Save LuxXx/11f4455c35ef09efb87b99889f786934 to your computer and use it in GitHub Desktop.
ninjaize your name
const chars = {
a: 'ka',
b: 'zu',
c: 'mi',
d: 'te',
e: 'ku',
f: 'lu',
g: 'ji',
h: 'ri',
i: 'ki',
j: 'zu',
k: 'me',
l: 'ta',
m: 'rin',
n: 'to',
o: 'mo',
p: 'no',
q: 'ke',
r: 'shi',
s: 'ari',
t: 'chi',
u: 'do',
v: 'ru',
w: 'mei',
x: 'na',
y: 'fu',
z: 'zi',
};
function ninjaize(name) {
let ninjaName = '';
for (char of name.toLowerCase()) {
ninjaName += chars[char];
}
return ninjaName
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment