safeharbor

0.1.0 • Public • Published

safeharbor

version build coverage code climate license

Find available port on host machine

Install

npm install safeharbor

Usage

const Safeharbor = require('safeharbor')

Safeharbor(function (err, available) {
  // available is the first available port between 1024 and 9999
  // or undefined
})

Safeharbor(8080, function (err, available) {
  // available is `8080` if the port is available
  // or undefined
})

Safeharbor(8080, 8089, function (err, port) {
  // available is the first available port between 8080 and 8089
  // or undefined
})

Readme

Keywords

none

Package Sidebar

Install

npm i safeharbor

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jackboberg