dmytro-komlyk / file-difference-calculator

CLI app for generate difference between two data structures in different formats.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

file analyze

Node.js CI Maintainability Test Coverage

About Difference Calculator

A 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, such as jsondiff. A similar mechanism is used when outputting tests or when automatically tracking changes in configuration files.

About project

This pet-project was created as part of the Hexlet curriculum.

Requirements

  • Node (v.13+)

Getting started

git clone https://github.com/dmytro-komlyk/file-difference-calculator.git
cd file-difference-calculator/
make install
make link

Run tests

make test
make test-coverage

Usage

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 [stylish] (default: "stylish")
  -h, --help           display help for command

Examples

Workflow

Flat file comparison (JSON)

asciicast

Flat file comparison (yaml)

asciicast

Flat file comparison (ini)

asciicast

Recursive comparison

asciicast

Flat format

asciicast

Вывод в json

asciicast

About

CLI app for generate difference between two data structures in different formats.


Languages

Language:JavaScript 97.0%Language:Makefile 3.0%