bare-signals
v3.0.2
Published
Native signal handling for JavaScript
Downloads
5,826
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