Skip to content

TemaGolovin/Difference-Calculator

Repository files navigation

Hexlet tests and linter status:

Actions Status

Maintainability

Test Coverage

Node CI

Description:

The Difference Calculator is a CLI program that shows the differences between two files. Supported file formats: JSON, YML, YAML.

Installation:

  1. Make sure you have at least version 12 of Node.js installed: node -v.
  2. Clone this repository: git clone https://github.com/TemaGolovin/frontend-project-46
  3. Run the command: make install.

Running tests:

$ make test

How to use:


You can use the project as a script in the terminal or as a library in your project. You can output changes in three formats: 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 (default: "stylish")
-h, --help display help for command
  1. Flat File Comparison (JSON). asciinema

  2. Flat File Comparison (YAML). asciinema

  3. Recursive comparison. asciinema

  4. Plain format. asciinema

  5. JSON format. asciinema

About

The Difference Calculator is a CLI program that shows the differences between two files. Supported file formats: JSON, YML, YAML.

Resources

Stars

Watchers

Forks

Packages

No packages published