Socket
Socket
Sign inDemoInstall

get-port-cli

Package Overview
Dependencies
60
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    get-port-cli

Get an available port


Version published
Weekly downloads
39K
decreased by-4.2%
Maintainers
1
Install size
0.965 MB
Created
Weekly downloads
 

Readme

Source

get-port-cli

Get an available port

Install

npm install --global get-port-cli

Usage

$ get-port --help

  Usage
    $ get-port <preferred-ports>…

  Options
    --host, -h  The host on which port resolution should be performed. Can be either an IPv4 or IPv6 address.

  Examples
    $ get-port
    51402
    $ get-port 91929192 2324 732842342
    2324
    $ get-port 80
    9090
    $ get-port --host=127.0.0.1
    55740
    $ get-port 3000 3002 --host=127.0.0.1
    3002
  • get-port - API for this module

Keywords

FAQs

Last updated on 14 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc