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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.08latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.08

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