CLI util compares two files and displays difference. Accepts two formats: JSON and YAML / YML, can compare json with yaml.
Three possible output formats:
- stylish: display differences in JSON-like format with '+' and '-' signs
- plain: display only, shows differences only, ignores unchanged values
- json: display AST in JSON-like format.
git clone git@github.com:igshipilov/frontend-project-46.git
cd frontend-project-46
make install
# set format with: --format or -f
gendiff -f stylish filepath.json filepath.yaml
gendiff -f plain filepath.json filepath.yaml
gendiff -f json filepath.json filepath.yaml
# by default: -f json
gendiff filepath.json filepath.yaml
Educational project by Hexlet school student.