occupied-ports
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Occupied Ports 🚀

Get all used ports on your machine, with the related process information.


npm npm GitHub

Installation

npm install occupied-ports

Usage

import { getPorts } from 'occupied-ports'

getPorts().then((ports) => {
    console.log(ports) // [{ port: 3000, pid: 1234, process: 'node' }, ...]
})

Compatibility

MacOS Windows Linux
⁉️ ⁉️

Please let us know if you have tested this library on Windows or Linux, so we can update the compatibility table.

Linting

To lint the entire project, execute the following command;

npm run lint

To lint and fix the entire project, execute the following command;

npm run lint:fix

To format the entire project using prettier, execute the following command;

npm run format

Build

To build the library, execute the following command;

npm run build

Test

To run unit tests for the library, execute the following;

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i occupied-ports

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

11.7 kB

Total Files

23

Last publish

Collaborators

  • avivbens87