Skip to content

vlad1slove1/frontend-project-lvl2

Repository files navigation

Hexlet tests, maintenance and tests coverage:

Actions Status Node.js Package Maintainability Test Coverage

Description:

The following repository contains gendiff function. It compares two configuration files and shows a difference. Function works with .yml .yaml and .json formats.

Setup:

  1. Fork this repo by SSH key:
git@github.com:vlad1slove1/frontend-project-lvl2.git
  1. Install depencies:
make install
  1. Link the package to execute gendiff function:
make link
  1. Display help:
Usage: gendiff [options] <filepath1> <filepath2>

Compares two configuration files and shows a difference.

Options:
  -V, --version        output the version number
  -f, --format <type>  output format
  -h, --help           output usage information
      

Run tests:

  1. Run linter:
make lint
  1. Run test:
make test
  1. Get test coverage:
make test-coverage

ascii:

display help and gendiff wit flat files asciicast

gendiff with nested files asciicast

plain format of gendiff asciicast

gendiff usability asciicast