konami

An easter-egg script for adding the Konami Code to your website or project.

Usage no npm install needed!

<script type="module">
  import konami from 'https://cdn.skypack.dev/konami';
</script>

README

Konami-JS

Add the Konami Code as an easter egg to your web project. Compatible with keyboards and touch events.

For example and additional information please visit: https://snaptortoise.github.io/konami-js/

Install

Future Improvements

Konami-JS is an ancient project by JavaScript standards, having started in 2009! I would love for 2018 to be the year it gets rewritten in a more modern, ES6-friendly way while incorporating something like Babel to ensure backwards compatibility in older browsers.

I would love the community's help in any of this 😃

You can watch me talk about the history of Konami-JS and the value of maintaining "frivolous" open-source projects at OdessaJS 2017 here: https://www.youtube.com/embed/F3xI3ps7syI

Notable instances of Konami-JS in the wild include:

Forks

If you'd prefer to use a coffeescript version you can find one here:

https://github.com/camray/konami-coffee

If you are looking for GamePad support check out this fork:

https://github.com/TomBebbington/konami-js

Contributions

Your pull requests are welcome! Emphasis on small footprints, speed and broad device/browser compatability. Less interested in package manager and toolchain integrations.