Skip to content

Difference Calculator is a program that determines the difference between two data structures

Notifications You must be signed in to change notification settings

MBelinskaya/Difference-Calculator

Repository files navigation

Actions Status Maintainability Test Coverage

Difference Calculator

About

Difference Calculator is a program that determines the difference between two data structures

Utility features:

  • Support of different input formats: yaml, json
  • Report generation in plain, stylish and json formats

How to use

  1. Install node.js. Use the instructions on the website
  2. Copy the repository to your computer using git clone:
git clone [email protected]:MBelinskaya/frontend-project-46.git
  1. To start using this project, copy and paste the following commands into the command line
npm ci
npm link
  1. Run utility: write in the console gendiff *format* *file 1* *file 2*

Example:

  • stylish format
    gendiff filepath1.json filepath2.json

  • plain format
    gendiff --format plain filepath1.yml filepath2.yml

  • json format
    gendiff --format json filepath1.json filepath2.json


Demonstration

stylish format: gendiff file1.json file2.json

asciicast

stylish format: gendiff filepath1.yml filepath2.yml

asciicast

plain format: gendiff --format plain filepath1.json filepath2.json

asciicast

json format: gendiff --format json filepath1.json filepath2.json

asciicast

About

Difference Calculator is a program that determines the difference between two data structures

Resources

Stars

Watchers

Forks

Packages

No packages published