npm.io
2.2.0 • Published 1 year ago

graceful-process

Licence
MIT
Version
2.2.0
Deps
1
Size
30 kB
Vulns
0
Weekly
0
Stars
34

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

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

// mycli.ts
import { graceful } from 'graceful-process';

graceful({ logger: console, label: 'mycli-child-cmd' });

Support

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

Contributors

Contributors

Made with contributors-img.