# kill-on-exit

> Ensure child processes are closed when the parent closes

Latest version **1.2.0** (published 2017-06-20) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install kill-on-exit
pnpm add kill-on-exit
yarn add kill-on-exit
bun add kill-on-exit
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2017-06-20 |
| First published | 2017-06-20 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Matthew Phillips |
| Maintainers | matthewp |
| Keywords | child_process, spawn |

## Links

- npm: https://www.npmjs.com/package/kill-on-exit
- Repository: https://github.com/matthewp/kill-on-exit
- Issues: https://github.com/matthewp/kill-on-exit/issues
- npm.io page: https://npm.io/package/kill-on-exit

## Recent versions

- 1.2.0 (latest) — 2017-06-20

## README

# kill-on-exit

Makes sure child processes are cleaned up (killed) when the parent process exits.

## Install

```shell
npm install kill-on-exit --save
```

## Use

```js
var spawn = require("child_process").spawn;
var killOnExit = require("kill-on-exit");

var child = spawn("long-process");
killOnExit(child);
```

## License

BSD 2 Clause

---
_Source: https://npm.io/package/kill-on-exit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
