-
install package globally
npm install net-checker -g
-
a url text list, for example
https://www.github.com
https://www.bing.com
https://www.google.com
-
exec the command
net-checker check path/to/your/url-text
-
get the result
┌────────────────────────┬────────┐
│ url │ status │
├────────────────────────┼────────┤
│ https://www.github.com │ ✅ │
├────────────────────────┼────────┤
│ https://www.bing.com │ ✅ │
├────────────────────────┼────────┤
│ https://www.google.com │ ❌ │
└────────────────────────┴────────┘
- success
- failed (timeout or error)
- DEBUG=net-checker: get verbose output
- CONNECTION_TIMEOUT=10000: change connection timeout
net-checker check <source> <destination>
source: the source url txt file, it is required!
destination: the export raw result, it is optional.
yarn