1.0.3 • Published 5 years ago

frontend-project-lvl2-deputatovn v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Project "Difference generator"

Maintainability Test Coverage Build Status

Project frontend-project-lvl2

Mentor Kirill Mokevnin

In project developed application gendiff that finds differences in configuration files

Supported input formats:

  • json
  • yml
  • ini

Output formatters:

  • plain text
  • pretty
  • json

Install

To use gendiff as an application install it globally:

$ sudo npm i -g frontend-project-lvl2-deputatovn

Usage

CLI

$ gendiff [options] <file1> <file2>

Options:

-V, --version        output the version number
-f, --format [type]  Output format
-h, --help           output usage information

Examples

Compare json files

$ gendiff file1.json file2.json

Compare yaml files

$ gendiff file1.yml file2.yml

Compare ini files

$ gendiff file1.ini file2.ini

Pretty output (default)

$ gendiff file1.json file2.json

Plain output

$ gendiff -f plain file1.json file2.json

JSON output

$ gendiff -f json file1.json file2.json
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.3

5 years ago

0.0.1

5 years ago