It requires Node.js v10+ & Npm v6+ to run.
It uses a number of open source projects to work properly:
- [Yargs] - Yargs be a node.js library fer hearties tryin' ter parse optstrings
- [node-fetch] - A light-weight module that brings window.fetch to Node.js
- [shelljs] - Unix shell commands on top of the Node.js API
- [lodash] - A modern JavaScript utility library delivering modularity, performance & extras.
- [mocha] - JavaScript test framework
git clone https://github.com/quickank1t/developer-challange.git DC
cd DC
npm install
node /server/ --d 1400 --u km --m train
For help
npm run help
For demo
npm run demo
To test
npm run test
Custom test
node /server/ --d distance --u unit --m mode-of-transportation
In the case of wrong input, please find the error text in red for hints
- Write MORE Tests
MIT