npm

Need private packages and team management tools?Check out npm Orgs. »

find-port

2.0.1 • Public • Published

find-port Build Status

NPM NPM

find an unused port in your localhost

    var findPort = require('find-port')
 
    // scan a range
    findPort('127.0.0.1', 8000, 8003, function(ports) {
        console.log(ports)
    })
 
    // scan explicitly
    findPort('127.0.0.1', [8000, 8011], function(ports) {
        console.log(ports)
    })
  • Since version 2.0.0 a local interface must be specified
  • This module is not designed to scan remote ports only local ones.

install

npm i find-port

Downloadsweekly downloads

16,943

version

2.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability