0.1.0 • Published 8 years ago

wait-for-sigint v0.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

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