Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

get-port

2.1.0 • Public • Published

get-port Build Status

Get an available port

Install

$ npm install --save get-port

Usage

const getPort = require('get-port');
 
getPort().then(port => {
    console.log(port);
    //=> 51402
});

Related

License

MIT © Sindre Sorhus