Tsogoeva / frontend-project-lvl2

The Utility that calculates and shows a difference between two configuration files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hexlet tests and linter status:

Actions Status

Workflow Test

Maintainability

Test Coverage

Description:

This repository is my second coding project from Hexlet (JavaScript). With this utility you can determine the difference between the two data structures.

Program features:

  • Supports formats - json, yaml;
  • Generates a report as plain text, stylish и json.

Setup for Ubuntu:

  • Install Node.js if you don't have it. Make sure your version is at least 16.4.1
  • Clone the repository to any convenient location on your computer using SSH key: git@github.com:Tsogoeva/frontend-project-lvl2.git
  • Go to the root directory of the project
  • Perform a dependency installation using the make install command
  • Install the package with the npm link command. You may need to sudo

Run:

  • gendiff -h - help output;
  • gendiff --format stylish *firstFilePath* *secondFilePath* - receiving data in stylish format;
  • gendiff --format plain *firstFilePath* *secondFilePath* - receiving data in plain format;
  • gendiff --format json *firstFilePath* *secondFilePath* - receiving data in json format;

An example of how the package works at the end of step 3:

asciicast

An example of how the package works at the end of step 5:

asciicast

An example of how the package works at the end of step 6:

asciicast

An example of how the package works at the end of step 7:

asciicast

An example of how the package works at the end of step 8:

asciicast

About

The Utility that calculates and shows a difference between two configuration files.


Languages

Language:JavaScript 97.7%Language:Makefile 2.3%