Skip to content

AutumnQR/fullstack-javascript-project-46

Repository files navigation

Hexlet tests and linter status:

Actions Status Github Action Status Maintainability Test Coverage

Project: Difference Calculator

Difference Calculator is my second project on the Hexlet learning platform, it can be used to learn the differences of data in files.

Installation

  1. Clone repo: git@github.com:AutumnQR/fullstack-javascript-project-46.git
  2. Install dependencies: npm i
  3. Use command gendiff -h to get information about further steps

Minimum requirements

  • OS: Windows 10 and above
  • NodeJS LTS version

Work example

Command: gendiff <file1> <file2> will show you the differences between the two files with the default "stylish" formatter, example:

{
  - follow: false
    host: hexlet.io
  - proxy: 123.234.53.22
  - timeout: 50
  + timeout: 20
  + verbose: true
}

You can use any of the three formatters:

  • json
  • stylish
  • plain

The operation of each of the formatters is specified in the asciiinemas below

Asciinemas

Stylish formatter and "help" command

asciicast

Plain formatter

asciicast

JSON formatter

asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published