{"name":"graceful-process","version":"2.1.0","author":{"name":"fengmk2"},"license":"MIT","_id":"graceful-process@2.1.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":"1b0656e66e54a0048031b94cef72129f58ebc88c","tarball":"http://registry-npm.ywwl.com/graceful-process/download/graceful-process-2.1.0.tgz","fileCount":20,"integrity":"sha512-zDtQqUABCk9OI5coURuYRgskmVxIufTXsJjXaoxZAXU1LphWKX3otz280tWLNj6HXrsbU1YfuNZiv+vtzykaMA==","signatures":[{"sig":"MEUCIQCYKNWC61S0/rEZ96e6Y0iBodC9d8sjoX6lZVl5tYeiXQIgOcNLvdsCmS+uDYPB0ocWuoaLrjQG3YNDbHzvmNpdz8Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/graceful-process@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28334,"size":6628,"noattachment":false,"key":"/graceful-process/-/graceful-process-2.1.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":"90661bc83ef5671a4825822477ef05993cd78ae5","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":"20.19.0","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.1.0_1744112021952_0.7314154337316978","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":1744112022161,"_cnpm_publish_time":1744112022161,"dist-tags":{"latest":"2.2.0","release-1.x":"1.3.0"}}