{"name":"graceful-process","version":"2.0.0","author":{"name":"fengmk2"},"license":"MIT","_id":"graceful-process@2.0.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":"e90abbdab7718e5e9f6b05b9b4a9790ccabe7ecc","tarball":"http://registry-npm.ywwl.com/graceful-process/download/graceful-process-2.0.0.tgz","fileCount":20,"integrity":"sha512-f9tFY2CtqTZyDk3wLOE04fkRAxFi8RRi7oO/rctY9b/QqeFp0hqqUMmqrtiVAyaSwcIV5HULL7S/TBELjgOC7w==","signatures":[{"sig":"MEUCIQCP1uWXcXmwku+Zi3GipcZ0uLuOABVo9djifaOTKSj5RwIgPjeRalgWv8/wZdC6I2M+oxp3AFeY9bu0h1e9w17YS4s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/graceful-process@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":25719,"size":6352,"noattachment":false,"key":"/graceful-process/-/graceful-process-2.0.0.tgz"},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">= 18.19.0"},"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"},"gitHead":"eefc1b85f8ebea8b65c6dfbcdf406d970e195cfb","scripts":{"ci":"egg-bin cov && attw --pack","lint":"eslint --cache src test --ext .ts","test":"egg-bin test","preci":"npm run lint && npm run prepublishOnly","pretest":"npm run lint -- --fix && npm run prepublishOnly","prepublishOnly":"tshy && tshy-after"},"_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":"18.20.5","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"mm":"^3.4.0","tshy":"3","fkill":"^7.2.1","coffee":"^5.5.1","eslint":"8","urllib":"^4.6.8","egg-bin":"6","tshy-after":"1","typescript":"5","@types/node":"22","@types/mocha":"10","@eggjs/tsconfig":"1","eslint-config-egg":"14","@arethetypeswrong/cli":"^0.17.1"},"_npmOperationalInternal":{"tmp":"tmp/graceful-process_2.0.0_1734229522138_0.6183065119252857","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":1734229522309,"_cnpm_publish_time":1734229522309,"dist-tags":{"latest":"2.2.0","release-1.x":"1.3.0"}}