spt-cli
internet connection speed and ping and so on
Install
ensure you have Node.js version 8+ installed. Then run the following:
$ npm install -g spt-cli
Usage
$ spt -h Usage: spt <command> [options] Options: -V, --version output the version number -h, --help output usage information Commands: test test network speet ip [options] [host] get ip address the local or input host public or internal
### SubCmd Usage
- test
$ spt test -hUsage: spt test [options] test network speet Options: -b --bytes [boolean] output the result in megabytes per second -t --time [number] the maximum length of a single test run -p --proxy [url] The proxy
- list
$ spt list -h Usage: spt list [options] [line] show network speet history Options: -c --clear [boolean] clear all network speet history -b --bytes [boolean] output the result in megabytes per second -v --verbose [boolean] output more detailed information -h, --help output usage information Examples: # 展示网络测速记录 默认最新的3条 $ spt list # 展示 6条 网络测速详细记录 $ spt list 6 -v # 清除所有的网络测速记录 $ spt list -c
- ip
$ spt ip -hUsage: spt ip [options] [host] get ip address the local or input host public or internal Options: -t --type [type]
Show your support
Give a ⭐️ if this project helped you!