0.9.62 • Published 7 years ago

konami-es6 v0.9.62

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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!