0.0.6 • Published 3 years ago

fireport v0.0.6

Weekly downloads
19
License
MIT
Repository
github
Last release
3 years ago

#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
0.0.6

3 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago