Sign Up for Free

RunKit +

Try any Node.js package right in your browser

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:

var pKilla = require("p-killa")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

p-killa v2.0.7

A process killer for windows and linux


forthebadge forthebadge forthebadge

A node process killer for windows and linux.


  • kill a process specifying the port it is listening to.
  • kill multiple processes occupying multiple ports.
  • the above, with a delay


The easiest way to use p-killa is to install it globally.

npm i -g p-killa


kill a single process

p-killa --ports 4000

kill a multiple processes

p-killa --ports 4000,3000,8080,9090

kill a multiple processes with a 5 seconds delay

p-killa --ports 4000,3000,8080,9090 --delay 5


This project has been bootstrapped using nod and coded with the amazing IntelliJ IDEA.

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. docker-test\linux\run.cmd

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


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free