sigint-hook
Normalize the process SIGINT signal.
Usage
Install
npm install sigint-hook
Configuration
eventOnHookOnly
(default false
): if true
, will not emit on the process
global object
triggerOnce
(default: false
): if true
, will stop listening after first SIGINT
signal
Examples
Default:
;
Customized:
eventOnHookOnly: true triggerOnce: true;
Please note that you can kill sigint-hook by running the .close()
method on the return object:
var sigint = eventOnHookOnly: true; // kill off early:sigint;
License
This project uses MIT. See LICENSE
file for additional information.