Skip to content

evgeniyworkbel/frontend-project-lvl2

Repository files navigation

JSON and YAML data formats

Actions Status Maintainability Maintainability

Description

Difference generator - a program which determines differences between two data structures, generates a report and format an output in different ways. It takes a JSON/YAML files as input and outputs as stylish/plain/json format.

Installation

  1. Clone the repository (via SSH or HTTPS or GitHub CLI):
$ git clone <your link> 
  1. Change the working directory:
$ cd frontend-project-lvl2
  1. Install dependencies:
$ make install

If you want to install package globally in your system you should run:

$ make link

And don't remember rerun this command in case of changes package.json!

Tests and linters:

$ make lint
$ make test
$ make test-coverage

Usage:

$ gendiff [options] <filepath1> <filepath2>

Options:

    -V, --version        output the version number
    -f, --format <type>  output format: stylish, plain, json (default: "stylish")
    -h, --help           display help for command

Demo:

1. Output of help and version

asciicast

2. Difference between 2 flat JSON or YAML files

asciicast

3. Difference between 2 nested JSON or YAML files in a stylish format

asciicast

4. Difference between 2 nested JSON or YAML files in a plain format

asciicast

5. Difference between 2 nested JSON or YAML files in a JSON format

asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published