get-port editorconfig travis-ci npm

Get an available port

3 years after

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

Related Repositories

serial-port-json-server

serial-port-json-server

A serial port JSON websocket server for Windows, Mac, Linux, Raspberry Pi, or Be ...

YUI-CSS-compressor-PHP-port

YUI-CSS-compressor-PHP-port

A PHP port of the YUI CSS compressor. ...

detect-port

detect-port

JavaScript Implementation of Port Detector ...

serial-port-json-server

serial-port-json-server

Serial Port JSON Server is a websocket server for your serial devices. It compil ...

exos

exos

Exos is a simple Port Wrapper : a GenServer which forwards cast and call to a li ...


Top Contributors

sindresorhus arthurvr ntwb

Releases

-   v2.1.0 zip tar
-   v2.0.0 zip tar
-   v1.0.0 zip tar
-   v0.1.0 zip tar