fireport

0.0.6 • Public • Published

#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

Readme

Keywords

Package Sidebar

Install

npm i fireport

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

3.31 kB

Total Files

3

Last publish

Collaborators

  • mjzzanichelli