Socket
Socket
Sign inDemoInstall

pick-port

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pick-port - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc