Skip to content

pterodactylsam/frontend-project-lvl2

Repository files navigation

Hexlet tests and linter status:

Actions Status Maintainability Test Coverage Node CI

Description:

Generator of difference is the CLI programm that generate difference between two files. Supporting formats: JSON, YML, YAML.

How to install:

  1. Make sure you have installed Node.js no lower version 12: node -v.
  2. Clone repository: git@github.com:pterodactylsam/frontend-project-lvl2.git.
  3. Change directory to frontend-project-lvl2
  4. Run the command: make install.
$ git clone git@github.com:pterodactylsam/frontend-project-lvl2.git
$ cd frontend-project-lvl2
$ make install

Run tests:

$ make test

How to use:

You can use the project as a script in the terminal or as a library in your JavaScript project. You can format the difference in three styles: stylish (default), plain and json.

$ 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 (choices: "stylish", "plain", "json", default: "stylish")
  -h, --help             display help for command

Project asciinemas:

Checking json files:

https://asciinema.org/a/QZmIysJu269aJJDdMHnN5LWjU

Checking attached json files:

https://asciinema.org/a/t0gcYX5sk19KW2Xytw1luKqnQ

Checking yml and yaml files:

https://asciinema.org/a/M6Rx5Efu21LHf9FhIBsjR22qE

Checking the plain format:

https://asciinema.org/a/XTgDDXlxHQzTkWLpczizbvwuE

Checking output in json format:

https://asciinema.org/a/bIBvEKS3T7TubUuYJK4mczjAm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors