{"name":"graceful-process","version":"1.3.0","author":{"name":"fengmk2"},"license":"MIT","_id":"graceful-process@1.3.0","maintainers":[{"name":"dead-horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/node-modules/graceful-process#readme","bugs":{"url":"https://github.com/node-modules/graceful-process/issues"},"bug":{"url":"https://github.com/node-modules/graceful-process/issues"},"dist":{"shasum":"fda6665f0594cc22195fa4119712bdd8a7745127","tarball":"http://registry-npm.ywwl.com/graceful-process/download/graceful-process-1.3.0.tgz","fileCount":4,"integrity":"sha512-tlldpcdxQgSgVD/A+OawlyjGU9Z+wbBTI6QroGo4u6znQNLgglp+V2KnixRHUXRttnrCpbQSSCJ6wvsMkzR9Aw==","signatures":[{"sig":"MEYCIQCpBpSKkw0NZTB0qOPNlhxSelGugMY857qZ4AeCjUNXiAIhAJT7khGKSgR3Npxxk/GFmBO80kdJLS7aBs8oFuIl/sJK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/graceful-process@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5786,"size":2145,"noattachment":false,"key":"/graceful-process/-/graceful-process-1.3.0.tgz"},"gitHead":"b15f6090f6251e3afaac0ee2fef839f38e9cef51","scripts":{"ci":"npm run lint && npm run cov","cov":"egg-bin cov","lint":"eslint *.js test","test":"npm run lint && npm run test-local","test-local":"egg-bin test"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git+ssh://git@github.com/node-modules/graceful-process.git","type":"git"},"_npmVersion":"10.8.2","description":"graceful exit process even parent exit on SIGKILL.","directories":{},"_nodeVersion":"20.19.0","dependencies":{"once":"^1.4.0","is-type-of":"^1.2.0"},"publishConfig":{"tag":"latest-1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mm":"^2.2.0","coffee":"^4.1.0","egg-ci":"^1.8.0","eslint":"^4.18.1","urllib":"^2.26.0","egg-bin":"^6.13.0","cross-env":"^5.0.1","mz-modules":"^2.1.0","eslint-config-egg":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/graceful-process_1.3.0_1744114255426_0.3421731913896975","host":"s3://npm-registry-packages-npm-production"},"readme":"# graceful-process\n\n[![NPM version](https://img.shields.io/npm/v/graceful-process.svg?style=flat-square)](https://npmjs.org/package/graceful-process)\n[![NPM quality](http://npm.packagequality.com/shield/graceful-process.svg?style=flat-square)](http://packagequality.com/#?package=graceful-process)\n[![NPM download](https://img.shields.io/npm/dm/graceful-process.svg?style=flat-square)](https://npmjs.org/package/graceful-process)\n[![Node.js Version](https://img.shields.io/node/v/graceful-process.svg?style=flat)](https://nodejs.org/en/download/)\n[![Continuous Integration](https://github.com/node-modules/graceful-process/actions/workflows/nodejs.yml/badge.svg)](https://github.com/node-modules/graceful-process/actions/workflows/nodejs.yml)\n[![Test coverage](https://img.shields.io/codecov/c/github/node-modules/graceful-process.svg?style=flat-square)](https://codecov.io/gh/node-modules/graceful-process)\n\ngraceful exit process even parent exit on SIGKILL.\n\n## Install\n\n```bash\nnpm i graceful-process\n```\n\n## Usage\n\nImport this module and execute it on every child process file.\n\n```ts\n// mycli.ts\nimport { graceful } from 'graceful-process';\n\ngraceful({ logger: console, label: 'mycli-child-cmd' });\n```\n\n## Support\n\n- [x] cluster\n- [x] child_process.fork()\n- [ ] child_process.spawn()\n\n## Contributors\n\n[![Contributors](https://contrib.rocks/image?repo=node-modules/graceful-process)](https://github.com/node-modules/graceful-process/graphs/contributors)\n\nMade with [contributors-img](https://contrib.rocks).\n","publish_time":1744114255591,"_cnpm_publish_time":1744114255591,"dist-tags":{"latest":"2.2.0","release-1.x":"1.3.0"}}