1.0.1 • Published 6 months ago

scan-port-cli v1.0.1

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
6 months ago

scan-port-cli

Scan local network hosts listening on a specific port

npm Package Version

Installation (optional)

Install as global package:

npm install --global scan-port-cli

Usage

Using global package

scan-port-cli [options]

Or using with npx without installation:

npx scan-port-cli [options]

Cli Options

The following options can be used in any order:

-h, --help     : show help message
-p, --port     : specify port number, default is 8080
-i, --interval : specify scan interval, default is 3000 (3 seconds)

Usage Example

Scan port with default settings:

scan-port-cli

Scan port 3000:

scan-port-cli --port 3000

Scan every 2 seconds:

scan-port-cli --interval 2000

or using unit (s for seconds, m for minutes):

scan-port-cli --interval 2s

Combine all settings:

scan-port-cli --port 3000 --interval 2s

License

This project is licensed with BSD-2-Clause

This is free, libre, and open-source software. It comes down to four essential freedoms [ref]:

  • The freedom to run the program as you wish, for any purpose
  • The freedom to study how the program works, and change it so it does your computing as you wish
  • The freedom to redistribute copies so you can help others
  • The freedom to distribute copies of your modified versions to others