nextport

1.0.0 • Public • Published

nextport

Node.js module to get the next free port

Install

$ npm install nextport

Usage

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

License

MIT (c) Sebastian Raff

/nextport/

    Package Sidebar

    Install

    npm i nextport

    Weekly Downloads

    261

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • hobbyquaker