@realign-zone/shortcuts.js

0.0.1 • Public • Published

shortcuts.js

simple shortcuts in js

Usage

const opt = {
    keys: {
        a: 16,
        b: 37
    },
    actionFn: () => {
        console.log('action ing');
    },
    finishFn: () => {
        console.log('action ed');
    }
};

const S = Shortcuts.init(opt);

setTimeout(() => {
    S.free();
    console.log('free');
}, 10000);

Package Sidebar

Install

npm i @realign-zone/shortcuts.js

Weekly Downloads

0

Version

0.0.1

License

ISC

Unpacked Size

19.7 kB

Total Files

13

Last publish

Collaborators

  • realign