The Difference Calculator is a CLI program that shows the differences between two files. Supported file formats: JSON, YML, YAML.
- Make sure you have at least version 12 of Node.js installed:
node -v.
- Clone this repository:
git clone https://github.com/TemaGolovin/frontend-project-46
- Run the command:
make install.
$ make test
You can use the project as a script in the terminal or as a library in your project. You can output changes in three formats: stylish (default), plain and json.
gendiff -h
Usage: gendiff [options] <filepath1> <filepath2>
Compares two configuration files and shows a difference.
Options:
-V, --version output the version number
-f, --format <type> <output format (default: "stylish")
-h, --help display help for command