Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "pick-port", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Get a free TCP or UDP port for the given IP address", | ||
@@ -5,0 +5,0 @@ "author": "José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)", |
@@ -8,5 +8,5 @@ | ||
```js | ||
const freePort = require('free-port'); | ||
const pickPort = require('pick-port'); | ||
freePort() | ||
pickPort() | ||
.then(port => | ||
@@ -22,3 +22,3 @@ { | ||
```js | ||
freePort({ type: 'tcp', ip: '10.10.10.1', port: 8000 }) | ||
pickPort({ type: 'tcp', ip: '10.10.10.1', port: 8000 }) | ||
.then(port => | ||
@@ -34,3 +34,3 @@ { | ||
### freePort([options]) | ||
### pickPort([options]) | ||
@@ -37,0 +37,0 @@ Returns a `Promise` for a port number. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package