"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:
- "Comparison of flat files (JSON)"
- "Comparison of flat files (YAML)"
- "Comparison of nested files (YAML)"
- "Comparison with 'plain' format two nested files(JSON)"
- "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 2 nested json files with the output data format 'plain'.
Comparison of 2 nested json files with the output data format 'json'.