An open API service indexing awesome lists of open source software.

https://github.com/hobbyquaker/nextport

Node.js module to get the next free port
https://github.com/hobbyquaker/nextport

listen port tcp

Last synced: 7 months ago
JSON representation

Node.js module to get the next free port

Awesome Lists containing this project

README

          

# nextport

> Node.js module to get the next free port

## Install

```
$ npm install nextport
```

## Usage

```javascript
const nextPort = require('nextport');

nextPort(2000, port => {
if (port) {
console.log('next free port:', port);
} else {
console.log('no free port >= 2000 found');
}
});

```

## License

MIT (c) Sebastian Raff