The tool compares two configuration files and shows a difference. It supports JSON and YAML files and shows result in several text output formats.
This is my studying project at Hexlet School.
- Clone the repo
git clone https://github.com/faciledictu/frontend-project-lvl2.git
- Install dependencies
make install
- If you want to compare files from CLI, make links
make link
gendiff [options] <filepath1> <filepath2>
Options:
-V, --version output the version number
-f, --format <type> output format (default: "stylish")
-h, --help display help for command
genDiff(filepath1, filepath2)
genDiff(filepath1, filepath2, format)
Options:
-
filepath1
,filepath2
Strings to be used as file paths
-
format
(optional) โ output format:stylish
(default): shows the changes as a treeplain
shows a list of changesjson
returns a JSON string