npm.io
1.0.0 • Published 8 years ago

get-available-port

Licence
MIT
Version
1.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

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

Keywords