https://github.com/risingstack/find-port
Open port finder with Promise interface.
https://github.com/risingstack/find-port
Last synced: 6 months ago
JSON representation
Open port finder with Promise interface.
- Host: GitHub
- URL: https://github.com/risingstack/find-port
- Owner: RisingStack
- License: mit
- Created: 2016-06-02T09:28:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-02T09:29:00.000Z (over 9 years ago)
- Last Synced: 2025-01-15T14:17:14.693Z (12 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Find-port
Open port finder with Promise interface.
```javascript
const findPort = require('@risingstack/find-port')
const start = 1024
const end = 2048 // 65535 by default
findPort(start, end)
.then((port) => console.log('Port is open:', port))
.catch((error) => console.error(error))
```
## Installation
```
npm install @risingstack/find-port --save
```