wait-for-sigint
0.1.0 • Public • Published 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
MIT
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.1.0
967
Version History
- VersionDownloads (Last 7 Days)
- 0.1.0
967
Package Sidebar
Install
Weekly Downloads