end-child-processes

Reliably ends all direct and indirect child processes of the current process

Usage no npm install needed!

<script type="module">
  import endChildProcesses from 'https://cdn.skypack.dev/end-child-processes';
</script>

README

End-Child-Processes

CircleCI Build status Coverage Status install size Language grade: JavaScript

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

Usage

import { endChildProcesses } from "end-child-processes"
// or
const { endChildProcesses } = require("end-child-processes")

await endChildProcesses()

Related work

Dependent on your use case, these other libraries that might also be a good fit for you:

  • tree-kill: ends all processes in the process tree, including the current process
  • @jub3i/tree-kill: ends all processes in the process tree, including the current process

Development

  • make setup: prepares this codebase for development after cloning
  • make test: runs all tests
  • make help: see all available Make commands

To deploy:

  • update the version in package.json and commit to master
  • run make publish