The Difference Generator

Actions StatusNode CIMaintainabilityTest Coverage

Description

The Difference Generator is a CLI application that determines the difference between two data structures and is used when testing or automatically tracking changes in configuration files. Utility capabilities:

  • Support for different input formats: yaml, json;
  • Report generation as plain text, stylish and json.

Quick Start Guide 📕

To get started you must have Node.js

Basic command

git@github.com:Sergey-ET/frontend-project-46.git # Clone this repository by SSH key locally
make install # Dependencies installation
npm link # Global installation of a package from a local directory
make gendiff -h (or --help) # Utility help
make gendiff [options] <filepath1> <filepath2> # Running the generator

Utility examples

Flat file comparison (JSON)

asciicast

Flat file comparison (YAML)

asciicast

Comparison of files with the nested structures in the 'stylish' format

asciicast

Comparison of files with the nested structures in the 'plain' format

asciicast

Comparison of files with the nested structures in the 'json' format

asciicast