This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
p-killa with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
A node process killer for windows and linux.
The easiest way to use p-killa is to install it globally.
npm i -g p-killa
p-killa --ports 4000
p-killa --ports 4000,3000,8080,9090
p-killa --ports 4000,3000,8080,9090 --delay 5
To hack a little bit with it you can additionally run
npm run auto-build-install, which transpiles es6 and installs
the module globally.
If you are developing on windows but want to test it on linux you can run the provided docker container.
First, build and bash into the container by running.
Now you can play around opening and shutting down ports. I use
http-server -pp 4000 . & followed by
p-killa --ports 4000 --delay 5 for example.
If you want to test it on your host just run
npm run test