konami-es6
v0.9.62
Published
Allows assigning a callback if the user enters the Konami code
Readme
Konami.js
Super simple to get started:
import konami from 'konami-es6';
konami(() => console.log('Hello World'));When the user enters the Konami code (Up, Up, Down, Down, Left, Right, Left, Right, A, B) the callback is called.
I like to use this for React components to set up a little debug panel or to do fun things for the user.
Feedback is appreciated!
