Retrieve active connections given a remote port
$ npm i -S port-find
or with Yarn:
$ yarn add port-find
const portFind = require('port-find');
portFind(3000)
.then(res => {
console.log(res);
})
.catch(err => {
console.error(err);
});
MIT © Vu Tran