genDiff is a powerful command-line program that enables users to compare two files, be it JSON or YAML, and output the result in three different formats: stylish, plain, and JSON.
With genDiff, users can easily check for differences between two files, making the process of debugging and maintaining code much easier
Before using genDiff, users must have the following installed:
- Node.js v 17.8.0 or higher
- NPM 8.19.2 or higher
- Any current Linux distributive
- If you using Windows, you need to install WSL
Clone this repository to your computer using 'git clone <ssh/url>'. Open a 'frontend-project-46' directory, then throw 'make install' (may need 'sudo' option if you using WSL) and 'npm link' in your console.
For quick checkout of programm options use:
gendiff -h
Once genDiff is installed, you can use the program to compare two files and output the results in three formats:
To compare two files and output the result in stylish format, use the following command:
gendiff <FILEPATH1> <FILEPATH2>
To compare two files and output the result in plain format, use the following command:
gendiff plain <FILEPATH1> <FILEPATH2> -f plain
To compare two files and output the result in JSON format, use the following command:
gendiff <FILEPATH1> <FILEPATH2> -f json
or
gendiff <FILEPATH1> <FILEPATH2> -f JSON