A lightweight library to kill processes listening to a list of ports using cli or nodejs module
$ npm install killports
const killports = require('killports')
const ports = [3000, 3001, 3002]
killports(ports)
$ npm install -g killports
$ killports 3000 3001 3002
ISC