Compares two configuration files and shows a difference
Input formats: json and yaml
Output formats: stylish, plain, json
Can be used as command line utility or npm package
You can install a package globally
$ npm install -g https://github.com/kdi-course/backend-project-lvl2
or locally
$ npm install https://github.com/kdi-course/backend-project-lvl2
After that, you can use it as CLI utility
$ gendiff -h
or as npm module
// your js file
import genDiff from '@hexlet/code';
const diff = genDiff(filepath1, filepath2);
console.log(diff);
In development mode you should use make utility:
$ git clone https://github.com/kdi-course/backend-project-lvl2
$ cd backend-project-lvl2
$ make setup // install dependencies and package
$ make lint // eslint check
$ make test // run tests