Test your internet connection speed and ping using speedtest.net from the CLI
$ npm install --global speed-test
$ speed-test --help
Usage
$ speed-test
Options
--json Output the result as JSON
--verbose Output more detailed information
MIT © Sindre Sorhus