Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beenotung/scan-port-cli
Scan localhost hosts listening on a specific port
https://github.com/beenotung/scan-port-cli
cli discover discovery local-network-ports-scanner port scan server
Last synced: about 1 month ago
JSON representation
Scan localhost hosts listening on a specific port
- Host: GitHub
- URL: https://github.com/beenotung/scan-port-cli
- Owner: beenotung
- License: bsd-2-clause
- Created: 2023-11-14T14:49:33.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-17T20:55:20.000Z (about 1 year ago)
- Last Synced: 2024-12-10T07:13:15.198Z (about 2 months ago)
- Topics: cli, discover, discovery, local-network-ports-scanner, port, scan, server
- Language: TypeScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scan-port-cli
Scan local network hosts listening on a specific port
[![npm Package Version](https://img.shields.io/npm/v/scan-port-cli)](https://www.npmjs.com/package/scan-port-cli)
## Installation (optional)
Install as global package:
```shell
npm install --global scan-port-cli
```## Usage
Using global package
```shell
scan-port-cli [options]
```Or using with npx without installation:
```shell
npx scan-port-cli [options]
```## Cli Options
The following options can be used in any order:
```shell
-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:
```shell
scan-port-cli
```Scan port 3000:
```shell
scan-port-cli --port 3000
```Scan every 2 seconds:
```shell
scan-port-cli --interval 2000
```or using unit (s for seconds, m for minutes):
```shell
scan-port-cli --interval 2s
```Combine all settings:
```shell
scan-port-cli --port 3000 --interval 2s
```## License
This project is licensed with [BSD-2-Clause](./LICENSE)
This is free, libre, and open-source software. It comes down to four essential freedoms [[ref]](https://seirdy.one/2021/01/27/whatsapp-and-the-domestication-of-users.html#fnref:2):
- 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