get-available-port

1.0.0 • Public • Published

Get Available Port

finds a random available port

import PortFinder from 'get-available-port';

const finder = new PortFinder({
    min: 80, // defaults to 20'000
    max: 100, // defaults to 60'000
});


const port = await finder.getPort(); // 91

Readme

Keywords

Package Sidebar

Install

npm i get-available-port

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

4.11 kB

Total Files

6

Last publish

Collaborators

  • ee