Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 2.22 KB

README.md

File metadata and controls

47 lines (30 loc) · 2.22 KB

Hexlet tests and linter status:

Actions Status Maintainability Test Coverage Linter Status test Status


Hexlet. Проект #2 - Вычислитель отличий.

Вычислитель отличий – программа, определяющая разницу между двумя структурами данных.

Возможности утилиты:

  • Поддержка разных входных форматов: yaml, json
  • Генерация отчета в виде plain text, stylish и json

Использование в качестве утилиты:

gendiff -h

Использование в качестве библиотеки:

import genDiff from '@hexlet/code';
    
const diff = genDiff(filepath1, filepath2, [format]);
console.log(diff);

Examples:

plain json - stylish format asciicast

plain yml - stylish format asciicast

nested json - stylish format asciicast

nested json - plain format output asciicast

nested json - json format output asciicast