terminate
Terminate a Node.js Process based on the Process ID
[![Node.js Version][node-version-image]][node-version-url]
[node-version-image]: https://img.shields.io/node/v/listdirs.svg?style=flat
[node-version-url]: http://nodejs.org/download/
tl;dr
Research
Background Reading
Useful StackOverflow Questions/Answers
Background / Motivation
While building the Faster
module we decided to use Child Process(es)
to run the application we are observing.
As a result, we need to be able to kill those processes in order to re-start the app.
Why not use an Existing Module?
We investigated using terminate: https://github.com/indexzero/terminate/
it was un-maintained and had no tests
so we submitted an issue
offering to update the module with tests.
Charlie
replied welcoming an update so we submitted
a Pull Request
with 100% test coverage
Other potential modules:
Name
Terminate
seemed like the best (of the available) name,
if you have a better suggestion, please share!
## This Project Reminded me of Two *xkcd* Comics: