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

node-porter

1.1.0 • Public • Published

Node.js - check is port available or get random available port.

npm version Build Status

Installation

npm install node-porter --save

Usage

Require:

var porter = require('node-porter');

Custom port:

porter(3000, function(err, port) {
    ...
})

Random port

porter(function(err, port) {
    ...
});

Test / Examples

npm test

Licence

ISC

See LICENCE for more detail.

Install

npm i node-porter

DownloadsWeekly Downloads

0

Version

1.1.0

License

ISC

Last publish

Collaborators

  • avatar