Generator of difference is the CLI programm that generate difference between two files. Supporting formats: JSON, YML, YAML.
- Make sure you have installed Node.js no lower version 12:
node -v. - Clone repository:
git@github.com:pterodactylsam/frontend-project-lvl2.git. - Change directory to frontend-project-lvl2
- Run the command:
make install.
$ git clone git@github.com:pterodactylsam/frontend-project-lvl2.git
$ cd frontend-project-lvl2
$ make install$ make testYou can use the project as a script in the terminal or as a library in your JavaScript project. You can format the difference in three styles: 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 (choices: "stylish", "plain", "json", default: "stylish")
-h, --help display help for commandhttps://asciinema.org/a/QZmIysJu269aJJDdMHnN5LWjU
https://asciinema.org/a/t0gcYX5sk19KW2Xytw1luKqnQ
https://asciinema.org/a/M6Rx5Efu21LHf9FhIBsjR22qE