graceful-process
v2.0.0
Published
graceful exit process even parent exit on SIGKILL.
Downloads
92,128
Readme
graceful-process
graceful exit process even parent exit on SIGKILL.
Install
npm i graceful-process
Usage
Require this module and execute it on every child process file.
// mycli.js
const { graceful } = require('graceful-process');
graceful({ logger: console, label: 'mycli-child-cmd' });
Support
- [x] cluster
- [x] child_process.fork()
- [ ] child_process.spawn()
Contributors
Made with contributors-img.