0.0.4 • Published 5 years ago

@xtrctio/wait-for-keypress v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

wait-for-keypress

Usage

const waitForKeypress = require('@xtrctio/wait-for-keypress');

(async () => {
    const result = await waitForKeypress({a: 'Success!', f: 'Failure!'});
})()

API

waitForKeypress(keyConfig) ⇒ Promise.<*>

Wait for configured keys to be pressed

Kind: global function

ParamTypeDescription
keyConfigobjectObject matching keys to their return value
0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago