It is a code assignment I got in order to show some coding skills.
I've decided to implement it using Javascript.
The assignment scope was limited to a given input format and structure and didn't required further generalizations, so I know that there is a huge room for improvement and extensions (like sorting algorithms, data tied to general timestamps, more alarms and so on).
PRs are welcome.
Node >= 10 (LTS) is required to run this script.
- Clone the repository in a directory
[directory]
cd [directory]
npm install
npm link
(this creates a global symlink to the package)pond-scan [path to .csv file]
- Enjoy.
- Go to repo directory
npm unlink
OR
npm uninstall -g osmobot-assignment
The package includes a full test coverage. Go inside the repo directory and run:
npm test
Once executed you can find the coverage report in a neat html format:
cd coverage
- open with a browser the file
index.html
The code is fully commented. All the functions and helpers are documented using JSHint conventions. That will trigger autocompletion and code hints in code editors like Visual Studio Code.