Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edin-m/node-porter
Check is port open or fetch random port
https://github.com/edin-m/node-porter
Last synced: 26 days ago
JSON representation
Check is port open or fetch random port
- Host: GitHub
- URL: https://github.com/edin-m/node-porter
- Owner: edin-m
- License: isc
- Created: 2015-02-23T13:56:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-12T00:40:06.000Z (over 7 years ago)
- Last Synced: 2024-10-08T23:10:57.496Z (about 1 month ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Node.js - check is port available or get random available port.
[![npm version](https://badge.fury.io/js/node-porter.svg)](https://badge.fury.io/js/node-porter)
[![Build Status](https://travis-ci.org/edin-m/node-porter.svg?branch=master)](https://travis-ci.org/edin-m/node-porter)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
===
ISCSee LICENCE for more detail.