find-port
find an unused port in your localhost
Last updated 5 years ago by kessler .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install find-port 
SYNC missed versions from official npm registry.

find-port

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.

Current Tags

  • 3.0.0                                ...           latest (5 years ago)

5 Versions

  • 3.0.0                                ...           5 years ago
  • 2.0.1                                ...           11 years ago
  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           13 years ago
  • 0.0.3                                ...           13 years ago
Maintainers (2)
Downloads
Total 12
Today 0
This Week 0
This Month 12
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE