iphilka / frontend-project-49

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hexlet tests and linter status:

Actions Status Maintainability Test Coverage Node CI

Gendiff

Gendiff — is a console utility that takes two data structures as input and outputs their differences in the course of former changes.

Information about features

Support for file extensions:

  • Yaml(yml), Json

Types of outputs:

  • Stylish, plain text, json

Installation instruction

Initially clone this repository and run the commands:

make install
sudo npm link

Usage information:

enter the command below in the console and examine the information

gendiff -h
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 (default: "stylish")
  -h, --help            output usage information

Examples of work:

Comparison of flat files (.JSON) asciicast

Comparison of flat files (.Yaml, .yml) asciicast

Recursive comparison of files with a nested structure - format Stylish (.JSON) asciicast

Recursive comparison of files with a nested structure - format Plain (.JSON) asciicast

compare files using - format Json (.JSON) asciicast

About


Languages

Language:JavaScript 98.0%Language:Makefile 2.0%