2.0.0 • Published 3 months ago

end-child-processes v2.0.0

Weekly downloads
62
License
ISC
Repository
github
Last release
3 months ago

End-Child-Processes

tests windows Coverage Status install size

This library ends all child processes spawned by the current process, including nested child processes. The current process itself remains unaffected.

Installation

npm install --save end-child-processes

Usage

import { endChildProcesses } from "end-child-processes"

// spawn a long-running subprocess
import * as childProcess from "child_process"
childProcess.exec("node -e 'while (true) {}'")

// end all running subprocesses spawned by this program
await endChildProcesses()

Related work

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

  • ps-tree: displays information about all running subprocesses
  • 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
2.0.0

3 months ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-rc1

6 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago