Skip to content

montanaflynn/newport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Newport Build Status Coverage Status Version License

Find a new port that's available to be used in your program.

Install

$ npm install newport

Usage

var newport = require('newport')

// Get a new port that is available
newport(function(err, port){
  if (err) throw err
  console.log(port)
})

// Check if a port is available
newport(8080, function(err, port){
  if (err) throw err
  console.log(port)
})

License

The MIT License

Copyright (c) 2015 Montana Flynn http://anonfunction.com

About

Find a new port that's available to use

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published