Skip to content

graceful exit process even parent exit on SIGKILL.

Notifications You must be signed in to change notification settings

node-modules/graceful-process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

90661bc · Apr 8, 2025

History

15 Commits
Dec 15, 2024
Apr 8, 2025
Apr 8, 2025
Dec 15, 2024
Dec 15, 2024
Apr 8, 2025
Dec 15, 2024
Apr 8, 2025
Dec 15, 2024

Repository files navigation

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.