killports

A lightweight library to kill processes listening to a list of ports using cli or nodejs module

Usage no npm install needed!

<script type="module">
  import killports from 'https://cdn.skypack.dev/killports';
</script>

README

killports

A lightweight library to kill processes listening to a list of ports using cli or nodejs module

Module usage

$ npm install killports
const killports = require('killports')
const ports = [3000, 3001, 3002]
killports(ports)

CLI Usage

$ npm install -g killports
$ killports 3000 3001 3002

License

ISC