KoryNunn / konami-js

Watches for the konami code via touch or keyboard then fires a callback.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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!');
});

About

Watches for the konami code via touch or keyboard then fires a callback.

License:MIT License


Languages

Language:JavaScript 100.0%