Package Exports
- lsofi
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 (lsofi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Find processes occupying a given port
lsofi 
Rationale
lsof -i :<port>for unix, darwin and win32 alike
Installation
Grab it from npm
npm install --save lsofi
Usage
// given 1337 is occupied and 1338 is not
const lsofi = require('lsofi')
const occupied = await lsofi(1337)
const free = await(1338)
console.log(occupied, free)
// => console.log(9834, null)See also
- krampus - Kill processes occupying a given port
lsofi is built by marionebl and contributors. It is released unter the MIT license.