git clone
https://github.com/sharaendy/frontend-project-lvl2make install
- establish dependenciesmake link
- install the app 'gendiff'
The CLI-utility compares two configuration files with the format .json, .yaml or .yml. The application takes two arguments on the command line - the paths to these files (it works both with relative and absolute paths) and outputs the result of the comparison in the specified format.
gendiff [options] <filepath1> <filepath2>
-h, --help
select format:
-f, --format <format>
available formats:
stylish (default)
plain
json
gendiff -f stylish <filepath1> <filepath2>
- Crossplatform;
- The code is built in an immutable style;
- Implemented code testing ( Jest );
- On Codeclimate the coverage is checked by tests, the badge displays it;
- Github Actions checks coding standards (eslint airbnb) and runs tests;
- The code is intentionally (for training purposes) built on variables, loops, as well as higher-order functions and recursion;
- The internal representation is a tree, where each element is a node that has its own type;
Шараевский Андрей (sharaendy)