This package has been deprecated

Author message:

This will not update

randomport

0.1.1 • Public • Published

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);
});

Readme

Keywords

none

Package Sidebar

Install

npm i randomport

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • ssen