Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 2.2 KB

README.md

File metadata and controls

47 lines (32 loc) · 2.2 KB

Hexlet tests and linter status, GitHub Actions:

Actions Status Node CI

Codeclimate:

Maintainability Test Coverage

Gendiff – educational project of Hexlet.

Simple difference calculator between 2 versions of files. It can accept JSON and YAML files.

Installing:

  1. clone repo in your local machine;
  2. hit 'npm ci' (or make install if you got 'Make' npm-package installed).
  3. also need to install the package locally by command npm link (make link).
  4. It forks directly from command line and as a library.

Usage:

gendiff [options] <filepath1> <filepath2>

Options – output format: stylish (default), plain and json is supported.

Examples of work

Installing and help call

asciicast

Comparing of flat JSON files

asciicast

Comparing of flat YAML files

asciicast

Comparing of JSON files with nested properties

asciicast

Comparing of JSON files with nested properties.

Output is a plain format. Also there is demonstrates comparsion of different formats of files (JSON compares with YAML). asciicast

Example of JSON output format.

asciicast