UNPKG

mikemettech-konami-code

Version:

Learn the Konami Code and never use this tool again šŸ˜Ž

10 lines (7 loc) • 428 B
function konamiCode(name) { if (arguments.length < 1) { return "Use this on your journey, nameless traveller! \n⬆ ⬆ ⬇ ⬇ ⬅ āž” ⬅ āž” šŸ…± šŸ…° \n(Up, Up, Down, Down, Left, Right, Left, Right, B, A)"; } return `Now you're playing with power, ${name}! Use this: \n⬆ ⬆ ⬇ ⬇ ⬅ āž” ⬅ āž” šŸ…± šŸ…° \n(Up, Up, Down, Down, Left, Right, Left, Right, B, A)`; } module.exports = { konamiCode };