waitkey

0.0.4 • Public • Published

waitkey

NPM

Utility function to wait specified keypress from stdin

Installation

Install with npm:

$ npm install waitkey

Or add it to the "dependencies" section of your package.json file.

Example

var waitkey = require('waitkey');
 
waitkey('space', function() {
    // your callback bits
});

/waitkey/

    Package Sidebar

    Install

    npm i waitkey

    Weekly Downloads

    2

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • sergeyt