Skip to content

GPWD/frontend-project46

Repository files navigation

Hexlet tests and linter status:

Actions Status

Maintainability status from Codeclimate.com:

Maintainability

Test Coverage:

Test Coverage

Node CI:

Node CI

Difference calculator

This program finds differences between two files in json and yaml format.
By default, the result of the comparison is displayed in a convenient format

Requirement

Node.js 19+

Installation

Run next commands:

git clone git@github.com:GPWD/frontend-project46.git
cd frontend-project-46/
make install
sudo npm link

Helper

gendiff -h

Start program

Default format

gendiff <name of file1> <name of file2> 

Plain format

gendiff --format plain <name of file1> <name of file2>

JSON format

gendiff --format json <name of file1> <name of file2>

Demonstration

Compare flat json-files in defaul format:

asciicast

Compare nested files json and yaml in default format:

asciicast

Compare nested files json and yaml in palin format:

asciicast

Compare nested files json and yaml in json format

asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published