Skip to content

distributed-systems/get-available-port

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

finds a random available port

Resources

License

Stars

Watchers

Forks

Packages

No packages published