Difference Calculator is a program that determines the difference between two data structures
Utility features:
- Support of different input formats: yaml, json
- Report generation in plain, stylish and json formats
- Install node.js. Use the instructions on the website
- Copy the repository to your computer using git clone:
git clone [email protected]:MBelinskaya/frontend-project-46.git
- To start using this project, copy and paste the following commands into the command line
npm ci
npm link
- Run utility: write in the console
gendiff *format* *file 1* *file 2*
-
stylish format
gendiff filepath1.json filepath2.json
-
plain format
gendiff --format plain filepath1.yml filepath2.yml
-
json format
gendiff --format json filepath1.json filepath2.json
stylish format:
gendiff file1.json file2.json
stylish format:
gendiff filepath1.yml filepath2.yml
plain format:
gendiff --format plain filepath1.json filepath2.json
json format:
gendiff --format json filepath1.json filepath2.json