{"name":"graceful-process","version":"2.2.0","description":"graceful exit process even parent exit on SIGKILL.","repository":{"type":"git","url":"git+ssh://git@github.com/node-modules/graceful-process.git"},"bug":{"url":"https://github.com/node-modules/graceful-process/issues"},"author":{"name":"fengmk2"},"license":"MIT","engines":{"node":">= 18.19.0"},"dependencies":{"read-env-value":"^1.1.0"},"devDependencies":{"@arethetypeswrong/cli":"^0.18.1","@eggjs/tsconfig":"2","@types/node":"22","@vitest/coverage-v8":"3","coffee":"5","fkill":"9","husky":"9","lint-staged":"15","mm":"4","oxlint":"^0.16.10","prettier":"3","tshy":"3","tshy-after":"1","typescript":"5","urllib":"4","vitest":"3"},"scripts":{"lint":"oxlint","pretest":"npm run lint -- --fix && npm run prepublishOnly","test":"vitest run --testTimeout=30000","preci":"npm run lint && npm run prepublishOnly","ci":"vitest run --testTimeout=30000 --coverage","postci":"npm run prepublishOnly","prepublishOnly":"tshy && tshy-after && attw --pack","prepare":"husky"},"lint-staged":{"*":"prettier --write --ignore-unknown --cache","*.{ts,js,json,md,yml}":["prettier --ignore-unknown --write","oxlint --fix"]},"type":"module","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"types":"./dist/commonjs/index.d.ts","main":"./dist/commonjs/index.js","module":"./dist/esm/index.js","_id":"graceful-process@2.2.0","gitHead":"6b4f15c0ce91783c30f06a6fde97393465b86b3f","bugs":{"url":"https://github.com/node-modules/graceful-process/issues"},"homepage":"https://github.com/node-modules/graceful-process#readme","_nodeVersion":"20.19.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-cDGvGtHfJ1SQSX8eLMgUGe86u96LxEm6jujcEjYUjWho+INwEOGOvfQPdum9jm4JxfU4lrWIpzLt8xEPgZrdcg==","shasum":"c48765be2b7a556c3a64c7eaf812b4e8ad128310","tarball":"http://registry-npm.ywwl.com/graceful-process/download/graceful-process-2.2.0.tgz","fileCount":20,"unpackedSize":30870,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/graceful-process@2.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBtcBDWEfRgnfoFVI3Vk4ZOZnHlV2ndrFs/R3gGhv5BJAiEAnCzy0IbQ90ojvSxaXf3ctCWk5XgESqw15ZcABvxCQLk="}],"size":6937,"noattachment":false,"key":"/graceful-process/-/graceful-process-2.2.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead-horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/graceful-process_2.2.0_1747462146687_0.8444946785207792"},"_hasShrinkwrap":false,"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":1747462146867,"_cnpm_publish_time":1747462146867,"dist-tags":{"latest":"2.2.0","release-1.x":"1.3.0"}}