0.1.1 • Published 10 years ago

randomport v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
10 years ago

Get random free port within min to max

Build Status Dependency Status

Install

$ npm install randomport

Usage

var randomport = require('randomport');
var express = require('express');

var app = express();

// randomport(min, max, callback)
randomport(8080, 9090, function(port) {
	console.log('Start within random free port ' + port);
	app.listen(port);
});