- To write tests on Jest
- Read files on Node.js
- Parsing data from json, yml, ini
- Build AST and work with it
- Working with recursion
- Building an application interface based on the library commander.js
This program for working in the console, which allows to detect differences between three data formats (json, yml, ini) and output them in three different styles ('stylish', 'plain text' and 'json'). You can use different file formats for comparison (for example, json and ini).
You can install gendiff with npm or build it from source.
You must have node.js installed on your computer (version 14.0 or higher).
To install gendiff using npm
run
npm i -g gendiff-gkoil
- Clone the project on your computer
git clone git@github.com:GKoil/GenDiff.git
- Install dependencies
npm i
- Build this project
make publish
- Install it
make link
Type gendiff
in the console and pass the path parameters to the files
gendiff ~/project1/before.json ~/project2/after.json
Also you can youse difference output formats
-V
Find out the version
Example:
gendiff -V
-h
Get help in console
Example:
gendiff -h
-f
Choose output stylish format.
Example:
gendiff -f plain file1.json file2.json