Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.89 KB

README.md

File metadata and controls

53 lines (36 loc) · 1.89 KB

DIFFERENCE CALCULATOR

This is a project of CLI-util: calculator of differences between two files. Work with JSON, Yaml, Yml.


Hexlet tests and linter status:

Actions Status

Code Climat tests:

Test Coverage Maintainability

Test status:

.github/workflows/test.yml


System requirements

Node.js version: v17.9.0

Linux or Mac OS or WSL

How to install

  • Clone this repository
  • Run the command:
  make install
  • Run the command (you may need sudo):
  npm link

How to use

Just type in command line:

gendiff --format <'stylish', 'plain' or 'json'> <path to file1> <path to file2>

Сomparing two files JSON

asciicast

Сomparing two files JSON, yaml, yml

asciicast

GenDiff file1.json file2.json stylish

asciicast

GenDiff file1.json file2.json: 'stylish', 'plain' and 'json' formats

asciicast