Skip to content

TwoKDev/backend-project-lvl2

Repository files navigation

@hexlet/code

Node CI Maintainability Test Coverage

Development

Setup

$ make install

Run lint

$ make lint

Run tests

$ make test

Install package for testing

$ make link

Uninstall package for testing

$ make unlink

Use CLI

Get diff JSON files

Stylish Format

$ gendiff filePath1.json filePath2.json

asciicast

Plain Format

$ gendiff --format plain filePath1.json filePath2.json

asciicast

JSON Format

$ gendiff --format json filePath1.json filePath2.json

asciicast

Get diff YML, YAML files

Stylish Format

$ gendiff filePath1.yml filePath2.yml

asciicast

Plain Format

$ gendiff --format plain filePath1.yml filePath2.yml

asciicast

JSON Format

$ gendiff --format json filePath1.yml filePath2.yml

asciicast

Use in JavaScript code

import genDiff from '@hexlet/code';

const diff = genDiff(filePath1, filePath2, outputFormat);
console.log(diff);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published