This script will test your internet speed and send it to an API for storage.
You need Ookla®'s Speedtest CLI tool.
Download and installation guide
Assuming you have pulled the repository, you now have to define the environment file.
# Make a copy of the example file
cp example.env .envSTORE_URL: The URL to the enpoint in which you can store the test result.
SPEEDTEST_CLI_UNIT_FORMAT: The format in which you wish the bandwidth result to be.
SPEEDTEST_CLI_OUTPUT_FORMAT: The format in which you wish the output to be.
If you set the ENV variable to development, the NodeJS app will console out relevant data for debugging purposes.
yarn installyarn buildnode dist/speedtest.js