0.1.0 • Published 8 years ago
wait-for-sigint v0.1.0
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.
License
0.1.0
8 years ago