Small node.js
program meant to be run on your command line, it will read the contents of
customers.txt
, then will parse it into class CustomerList
and will find customers that are
closest to a given point (hardcoded in index.js
).
Node.js installed
v10
This will a list of sorted entries in a file within specified radius.
npm i
node index
Tests are written with mocha
and being run in travis environment.
To run them locally:
npm test