find-open-port

2.0.3 • Public • Published

nlm-chat nlm-github nlm-node nlm-version

Find an Open Port Build Status

Install

npm install --save find-open-port

Usage

const findPort = require('find-open-port');

findPort().then(port => {
  console.log(`You may now start listening on %d.${port}`);
});

findPort.isAvailable(80).then(available => {
  console.log(`Port 80 is ${available ? 'available' : 'not available'}`);
});

Readme

Keywords

Package Sidebar

Install

npm i find-open-port

Weekly Downloads

787

Version

2.0.3

License

BSD-3-Clause

Unpacked Size

9.24 kB

Total Files

5

Last publish

Collaborators

  • jkrems
  • groupon