Utility function to wait specified keypress from stdin
Install with npm
:
$ npm install waitkey
Or add it to the "dependencies"
section of your package.json file.
var waitkey = require('waitkey');
waitkey('space', function() {
// your callback bits
});