hexlet-gendiff-andryushque
v1.1.8
Published
Hexlet Project#2 - Difference Generator
Downloads
7
Maintainers
Readme
Hexlet Project#2 - "Difference Generator"
Utility for finding differences in configuration files.
Installation
$ npm install -g hexlet-gendiff-andryushque
Usage
$ gendiff [options] <firstConfig> <secondConfig>
Options:
-V, --version output the version number
-f, --format [type] output format
-h, --help output usage information
Output formats:
- tree (default format)
- plain
- JSON
Types of configuration files:
- .json
- .yaml
- .ini
Example
$ gendiff before.json after.json
{
host: hexlet.io
+ timeout: 20
- timeout: 50
- proxy: 123.234.53.22
+ verbose: true
- follow: false
}
Comparing two json files
$ gendiff <firstFile.json> <secondFile.json>
Comparing two yml files
$ gendiff <firstFile.yml> <secondFile.yml>
Comparing two ini files
$ gendiff <firstFile.ini> <secondFile.ini>
Comparing two files with recursive structure, output format - tree (default)
$ gendiff <firstFile> <secondFile>
$ gendiff -f tree <firstFile> <secondFile>
Comparing two files with recursive structure, output format - plain
$ gendiff -f plain <firstFile> <secondFile>
Comparing two files with recursive structure, output format - json
$ gendiff -f json <firstFile> <secondFile>
Uninstall
$ npm uninstall -g hexlet-gendiff-andryushque