Skip to content

Node.js module to get the next free port

Notifications You must be signed in to change notification settings

hobbyquaker/nextport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nextport

Node.js module to get the next free port

Install

$ npm install nextport

Usage

const nextPort = require('nextport');

nextPort(2000, port => {
    if (port) {
        console.log('next free port:', port);
    } else {
        console.log('no free port >= 2000 found');
    }
});

License

MIT (c) Sebastian Raff

About

Node.js module to get the next free port

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published