UNPKG

@zkochan/pnpm

Version:

A fast implementation of npm install

33 lines (18 loc) 496 B
# get-port [![Build Status](https://travis-ci.org/sindresorhus/get-port.svg?branch=master)](https://travis-ci.org/sindresorhus/get-port) > Get an available port ## Install ``` $ npm install --save get-port ``` ## Usage ```js const getPort = require('get-port'); getPort().then(port => { console.log(port); //=> 51402 }); ``` ## Related - [get-port-cli](https://github.com/sindresorhus/get-port-cli) - CLI for this module ## License MIT © [Sindre Sorhus](http://sindresorhus.com)