graceful-process

1.2.0 • Public • Published

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()

Readme

Keywords

none

Package Sidebar

Install

npm i graceful-process

Weekly Downloads

21,294

Version

1.2.0

License

MIT

Unpacked Size

6.4 kB

Total Files

5

Last publish

Collaborators

  • dead-horse
  • fengmk2
  • popomore