Package Exports
- pid-from-port
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pid-from-port) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pid-from-port 
Get PID from a port
Install
$ npm install pid-from-portUsage
const pidFromPort = require('pid-from-port');
(async () => {
try {
console.log(await pidFromPort(8080));
//=> 1337
} catch (err) {
console.log(err);
//=> 'Couldn't find a process with port `8080`'
}
})();API
pidFromPort(port)
port
Type: number
Port to lookup.
License
MIT © Kevin Martensson