bare-signals
v2.2.3
Published
Native signal handling for JavaScript
Downloads
3,833
Readme
bare-signals
Native signal handling for JavaScript.
npm i bare-signals
Usage
const Signal = require('bare-signals')
const sigint = new Signal('SIGINT')
sigint
.on('signal', () => console.log('SIGINT caught'))
.start()
License
Apache-2.0