local-port

Find open or closed local port within a range

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
local-port
000.0.29 years ago9 years agoMinified + gzip package size for local-port in KB

Readme

local-port Build Status
Find open or closed local port within a range

Usage

require('local-port').findOpen(3001, function(err, port) {
	if(err)
		console.error(err);

    console.log(port)
})

API

findOpen(start, [end,] callback) findClose(start, [end,] callback) isPortTaken(port, callback) => callback(err, taken)