Skip to content

Zakir0000/frontend-project-46

Repository files navigation

Project "Difference calculator"

Hexlet tests and linter status:

Actions Status

My tests status:

Actions Status

Maintainability

Test coverage:

Test Coverage

About

"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, for example https://www.jsondiff.com. A similar mechanism is used when outputting tests or when automatically tracking changes in configuration files.

Features of the utility:

  • Supports various input formats: yaml, json;
  • Report generation as plain text, stylish and json.

Examples of use:

  1. "Comparison of flat files (JSON)"
  2. "Comparison of flat files (YAML)"
  3. "Comparison of nested files (YAML)"
  4. "Comparison with 'plain' format two nested files(JSON)"
  5. "Comparison with 'json' format two nested files(JSON)"
# Runs npm-publish with flag (--dry-run)
make publish

# Runs Eslint against source code for quality
make lint

# Runs Jest
make test

# Runs Jest in code coverage mode
make test-coverage

# Runs Jest in watch mode
make watch

Comparison of flat files (JSON)

A simple comparison of 2 files with JSON extension without specifying the output data format.

asciicast

Comparison of flat files (YAML)

A simple comparison of 2 files with YAML extension without specifying the output data format.

asciicast

Comparison of nested files (JSON)

A simple comparison of 2 nested files with JSON extension without specifying the output data format.

asciicast

Comparison of nested files with "plain" format (JSON)

Comparison of 2 nested json files with the output data format 'plain'. asciicast

Comparison of nested files with "json" format (JSON)

Comparison of 2 nested json files with the output data format 'json'.

asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published