You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

graceful-process

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graceful-process - npm Package Compare versions

Comparing version

to
2.0.0

dist/commonjs/exit.d.ts

83

package.json
{
"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
[![NPM version](https://img.shields.io/npm/v/graceful-process.svg?style=flat-square)](https://npmjs.org/package/graceful-process)
[![NPM quality](http://npm.packagequality.com/shield/graceful-process.svg?style=flat-square)](http://packagequality.com/#?package=graceful-process)
[![NPM download](https://img.shields.io/npm/dm/graceful-process.svg?style=flat-square)](https://npmjs.org/package/graceful-process)
[![Node.js Version](https://img.shields.io/node/v/graceful-process.svg?style=flat)](https://nodejs.org/en/download/)
[![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)
[![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)
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
[![Contributors](https://contrib.rocks/image?repo=node-modules/graceful-process)](https://github.com/node-modules/graceful-process/graphs/contributors)
Made with [contributors-img](https://contrib.rocks).