Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

safeharbor

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safeharbor

find available port on host machine

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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
})

FAQs

Package last updated on 13 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts