graceful-process
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

graceful-process

NPM version NPM quality NPM download Node.js Version Continuous Integration Test coverage

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

Contributors

Made with contributors-img.

Readme

Keywords

none

Package Sidebar

Install

npm i graceful-process

Weekly Downloads

20,516

Version

2.0.0

License

MIT

Unpacked Size

25.7 kB

Total Files

20

Last publish

Collaborators

  • dead-horse
  • fengmk2
  • popomore