0.0.4 • Published 6 years ago

@xtrctio/wait-for-keypress v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 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

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago