wait-for-sigint
v0.1.0
Published
Keep the node process alive until SIGINT (ctrl+c) is received
Downloads
4,636
Maintainers
Readme
wait-for-sigint
A simple utility to keep the node process waiting until SIGINT
(usually ctrl+c
) is received.
Install
Using npm:
npm install wait-for-sigint
Usage
var waitForSigint = require('wait-for-sigint');
waitForSigint().then(() => {
console.log('received sigint');
});
waitForSigint()
returns a Promise that is resolved when SIGINT has been received.