Skip to content

igshipilov/Diff-generator

Repository files navigation

Hexlet tests and linter status:

Actions Status Maintainability Test Coverage

How it works

Project description

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.

Install

git clone git@github.com:igshipilov/frontend-project-46.git
cd frontend-project-46
make install

Launch:

# 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published