🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

fireport

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fireport

find available port

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

#Fireport

##How it works

Starting from the default port or the highest candidate, fireport will attempt to find a new port available by adding 1 recursively, within a time limit

##Usage

import PortFinder from 'fireport';
PortFinder
  .get()
  .then(
//manage here the fullfillment
  )
import PortFinder from 'fireport';
PortFinder
// attempt to find a port within 1s
  .timer(1000)
  .get()
  .then(...)
import PortFinder from 'fireport';
PortFinder
// will attempt on declared candidates
  .get(8080,8081)
  .then(...)

##Default Values

  • time: 10s
  • port: 3000

Keywords

node

FAQs

Package last updated on 04 Feb 2021

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