Name Last Update
..
History.md Loading commit data...
README.md Loading commit data...
exit.js Loading commit data...
index.js Loading commit data...
package.json Loading commit data...

graceful-process

graceful exit process even parent exit on SIGKILL.

NPM version build status Test coverage David deps Known Vulnerabilities NPM download

Install

npm i graceful-process --save

Usage

Require this module and execute it on every child process file.

// mycli.js
require('graceful-process')({ logger: console, label: 'mycli-child-cmd' });

Support

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