Skip to content

AnastasiaKv/frontend-project-lvl2

Repository files navigation

Difference Generator

Actions Status tests-check Maintainability Test Coverage

This is a program that recognizes the difference between two data structures (similar to the mechanism for automatically tracking changes in configuration files).

Utility features:

  • Support for different input formats: yaml, json
  • Report generation in plain text, style and json

Setup

  • Install packages make install
  • Run tests make test
  • Show test-coverage make test-coverage
  • Run linter make lint
  • Publish make publish
  • Create a symlink in the global folder npm link

Using

  • Utility description & help gendiff -h
  • Generate the difference of two files in the following formats:
    • stylish [default]: gendiff filepath1 filepath2
    • plain: gendiff -f plain filepath1 filepath2
    • json: gendiff -f json filepath1 filepath2

Demos

  • gendiff description & gendiff of json flat object

    asciicast
  • gendiff of yaml flat object

    asciicast
  • gendiff of complex object

    asciicast
  • gendiff of complex object with plain format

    asciicast
  • gendiff of complex object with json format

    asciicast

About

Hexlet Project #2

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors