Skip to content

Hexlet - Frontend program - Find differences between text files

Notifications You must be signed in to change notification settings

johanla0/js-cli-gendiff

Repository files navigation

gendiff Class Project

Node.js CI Actions Status Maintainability Test Coverage

Поиск различий между файлами

Учебный проект по созданию консольной утилиты, которая находит различия между сравниваемыми файлами.

  1. Склонируйте репозиторий
    $ git clone https://github.com/johanla0/frontend-project-lvl2.git
    
  2. Для установки введите
    $ make install
    

Для запуска тестов введите

$ make test

Использование

Usage: gendiff [options] <filepath1> <filepath2>

Compares two configuration files and shows a difference.

Options:
  -V, --version        output the version number
  -f, --format [type]  render format: stylish / plain / json (default: "stylish")
  -h, --help           render usage information

Демонстрация работы

JSON (по умолчанию --format stylish)

asciicast

YAML (по умолчанию --format stylish)

asciicast

JSON или YAML со вложенными элементами (по умолчанию --format stylish)

asciicast

JSON или YAML со вложенными элементами (--format plain)

asciicast

JSON или YAML со вложенными элементами (--format json)

asciicast

About

Hexlet - Frontend program - Find differences between text files

Resources

Stars

Watchers

Forks

Packages

No packages published