Bonamente / difference-calculator

A command line interface utility that determines the difference between two data structures.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maintainability Test Coverage

Difference calculator

A command line interface utility that determines the difference between two data structures.

Technologies

JavaScript Jest Asciinema

Utility features:

  • Support for various input data formats: yaml, ini, json
  • Generating a report in plain text, stylish and json format

Installation

Difference calculator requires Node.js v14+ to run.

$ make install

Usage

Usage: gendiff [options] <filePath1> <filePath2>

Compares two configuration files and shows the difference.

Options:
  -V, --version                              output the version number
  -f, --format [type: stylish, plain, json]  output format (default: "stylish")
  -h, --help                                 display help for command

Examples:

Comparison of flat files (JSON)

asciicast

Comparison of flat files (YAML)

asciicast

Comparison of flat files (ini)

asciicast

Comparison of files with nested structures

asciicast

Plain format output

asciicast

JSON format output

asciicast

About

A command line interface utility that determines the difference between two data structures.


Languages

Language:JavaScript 95.4%Language:Makefile 2.9%Language:CSS 1.7%