A difference calculator is a program that determines the difference between two data structures. This is a popular task for which there are many online services, such as jsondiff. A similar mechanism is used when outputting tests or when automatically tracking changes in configuration files.
This pet-project was created as part of the Hexlet curriculum.
- Node (v.13+)
git clone https://github.com/dmytro-komlyk/file-difference-calculator.git
cd file-difference-calculator/
make install
make link
make test
make test-coverage
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 [stylish] (default: "stylish")
-h, --help display help for command
Flat file comparison (JSON)
Flat file comparison (yaml)
Flat file comparison (ini)
Recursive comparison
Flat format
Вывод в json