2.0.0 • Published 5 months ago

graceful-process v2.0.0

Weekly downloads
23,658
License
MIT
Repository
github
Last release
5 months ago

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

  • cluster
  • child_process.fork()
  • child_process.spawn()

Contributors

Contributors

Made with contributors-img.