Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 2.58 KB

README.md

File metadata and controls

45 lines (31 loc) · 2.58 KB

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