graceful-process
Advanced tools
Comparing version
{ | ||
"name": "graceful-process", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "graceful exit process even parent exit on SIGKILL.", | ||
"files": [ | ||
"index.js", | ||
"exit.js" | ||
], | ||
"scripts": { | ||
"lint": "eslint *.js test", | ||
"test": "npm run lint && npm run test-local", | ||
"test-local": "egg-bin test", | ||
"cov": "cross-env COV=true egg-bin cov", | ||
"autod": "autod", | ||
"pkgfiles": "egg-bin pkgfiles", | ||
"ci": "npm run lint && npm run cov" | ||
}, | ||
"repository": { | ||
@@ -27,21 +14,57 @@ "type": "git", | ||
"license": "MIT", | ||
"dependencies": { | ||
"is-type-of": "^1.2.0", | ||
"once": "^1.4.0" | ||
"engines": { | ||
"node": ">= 18.19.0" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"autod": "^3.0.1", | ||
"coffee": "^4.1.0", | ||
"cross-env": "^5.0.1", | ||
"egg-bin": "^4.3.7", | ||
"egg-ci": "^1.8.0", | ||
"eslint": "^4.18.1", | ||
"eslint-config-egg": "^7.0.0", | ||
"mm": "^2.2.0", | ||
"mz-modules": "^2.1.0", | ||
"urllib": "^2.26.0" | ||
"@arethetypeswrong/cli": "^0.17.1", | ||
"@eggjs/tsconfig": "1", | ||
"@types/mocha": "10", | ||
"@types/node": "22", | ||
"coffee": "^5.5.1", | ||
"egg-bin": "6", | ||
"eslint": "8", | ||
"eslint-config-egg": "14", | ||
"fkill": "^7.2.1", | ||
"mm": "^3.4.0", | ||
"tshy": "3", | ||
"tshy-after": "1", | ||
"typescript": "5", | ||
"urllib": "^4.6.8" | ||
}, | ||
"ci": { | ||
"version": "6, 8, 9" | ||
} | ||
"scripts": { | ||
"lint": "eslint --cache src test --ext .ts", | ||
"pretest": "npm run lint -- --fix && npm run prepublishOnly", | ||
"test": "egg-bin test", | ||
"preci": "npm run lint && npm run prepublishOnly", | ||
"ci": "egg-bin cov && attw --pack", | ||
"prepublishOnly": "tshy && tshy-after" | ||
}, | ||
"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" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"types": "./dist/commonjs/index.d.ts", | ||
"main": "./dist/commonjs/index.js", | ||
"module": "./dist/esm/index.js" | ||
} |
# graceful-process | ||
[](https://npmjs.org/package/graceful-process) | ||
[](http://packagequality.com/#?package=graceful-process) | ||
[](https://npmjs.org/package/graceful-process) | ||
[](https://nodejs.org/en/download/) | ||
[](https://github.com/node-modules/graceful-process/actions/workflows/nodejs.yml) | ||
[](https://codecov.io/gh/node-modules/graceful-process) | ||
graceful exit process even parent exit on SIGKILL. | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[![Test coverage][codecov-image]][codecov-url] | ||
[![David deps][david-image]][david-url] | ||
[![Known Vulnerabilities][snyk-image]][snyk-url] | ||
[![NPM download][download-image]][download-url] | ||
[npm-image]: https://img.shields.io/npm/v/graceful-process.svg?style=flat-square | ||
[npm-url]: https://npmjs.org/package/graceful-process | ||
[travis-image]: https://img.shields.io/travis/node-modules/graceful-process.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/node-modules/graceful-process | ||
[codecov-image]: https://codecov.io/gh/node-modules/graceful-process/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/node-modules/graceful-process | ||
[david-image]: https://img.shields.io/david/node-modules/graceful-process.svg?style=flat-square | ||
[david-url]: https://david-dm.org/{{org}}/graceful-process | ||
[snyk-image]: https://snyk.io/test/npm/graceful-process/badge.svg?style=flat-square | ||
[snyk-url]: https://snyk.io/test/npm/graceful-process | ||
[download-image]: https://img.shields.io/npm/dm/graceful-process.svg?style=flat-square | ||
[download-url]: https://npmjs.org/package/graceful-process | ||
## Install | ||
```bash | ||
npm i graceful-process --save | ||
npm i graceful-process | ||
``` | ||
@@ -37,3 +24,5 @@ | ||
// mycli.js | ||
require('graceful-process')({ logger: console, label: 'mycli-child-cmd' }); | ||
const { graceful } = require('graceful-process'); | ||
graceful({ logger: console, label: 'mycli-child-cmd' }); | ||
``` | ||
@@ -46,1 +35,7 @@ | ||
- [ ] child_process.spawn() | ||
## Contributors | ||
[](https://github.com/node-modules/graceful-process/graphs/contributors) | ||
Made with [contributors-img](https://contrib.rocks). |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
25719
301.73%0
-100%20
300%354
331.71%Yes
NaN14
40%40
-11.11%2
Infinity%- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed