konami-js

Multiple input support for konami code (Keyboard and Touch)

Usage no npm install needed!

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

README

konami-js

Watches for the konami code then fires a callback.

On the keyboard

↑ ↑ ↓ ↓ ← → ← → B A ENTER

As touch input

↑ ↑ ↓ ↓ ← → ← → TAP TAP TAP

Installation

npm install konami-js

Usage

var Konami = require('konami-js');

new Konami(function(){
    alert('KONAMI!');
});