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

/wait-for-sigint/

    Package Sidebar

    Install

    npm i wait-for-sigint

    Weekly Downloads

    846

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • sidekickxyz