Skip to content

Commit

Permalink
Merge branch 'master' into kg-prosewrap
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
kevgo committed Jul 19, 2019
2 parents fa90d4c + 24f7dca commit 562dcec
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions README.md
Expand Up @@ -3,21 +3,18 @@
[![CircleCI](https://circleci.com/gh/kevgo/end-child-processes.svg?style=shield)](https://circleci.com/gh/kevgo/end-child-processes)
[![Build status](https://ci.appveyor.com/api/projects/status/mawb87nkafx7sqvx/branch/master?svg=true)](https://ci.appveyor.com/project/kevgo/end-child-processes/branch/master)
[![Coverage Status](https://coveralls.io/repos/github/kevgo/end-child-processes/badge.svg)](https://coveralls.io/github/kevgo/end-child-processes)
[![install size](https://packagephobia.now.sh/badge?p=end-child-processes@1.0.0)](https://packagephobia.now.sh/result?p=end-child-processes@1.0.0)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/kevgo/end-child-processes.svg)](https://lgtm.com/projects/g/kevgo/end-child-processes/context:javascript)

This library reliably ends all child processes (and their child processes) that
were spawned by the current process, without ending the current process itself.
This library reliably ends all child processes (and their child processes) the
current process has spawned. It doesn't end the current process itself.

## Installation

```
npm install --save end-child-processes
```

or

```
yarn add end-child-processes
```shell
$ npm install --save end-child-processes
# or
$ yarn add end-child-processes
```

## Usage
Expand All @@ -32,13 +29,12 @@ await endChildProcesses()

## Related work

There are a number of other libraries, but they either also kill the root
process or don't work:
There are a number of other libraries that might be a better fit for you:

- [tree-kill](https://github.com/pkrumins/node-tree-kill): Kill all processes in
the process tree, including the root process
the process tree, including the current process
- [@jub3i/tree-kill](https://github.com/jub3i/tree-kill): Kill all processes in
the process tree, including the root process
the process tree, including the current process

## Development

Expand Down

0 comments on commit 562dcec

Please sign in to comment.