get-port-cli-fork

2.0.1 • Public • Published

get-port-cli Build Status

Get an available port

Install

$ npm install --global get-port-cli

Usage

$ get-port --help

It will output as:

Get an available port
 
Usage
  $ get-port <preferredPorts>...
 
Options
  --host, -h  The host on which port resolution should be performed. Can be either an IPv4 or IPv6 address.
  --help      Shows this informative screen.
 
Examples
  $ get-port
  51402
 
  $ get-port 91929192 2324 732842342
  2324
 
  $ get-port 80
  9090
 
  $ get-port -h 127.0.0.1
  55740
 
  $ get-port 3000 3002 -h 127.0.0.1
  3002

Related

License

MIT © Sindre Sorhus

/get-port-cli-fork/

    Package Sidebar

    Install

    npm i get-port-cli-fork

    Weekly Downloads

    1

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    3.64 kB

    Total Files

    6

    Last publish

    Collaborators

    • jacopkane