A package that compares two configuration files and shows a difference.
A package that determines the difference between two configuration files and shows a difference.
Supported JSON and YAML file formats.
Уou can use both absolute and relative paths when accessing to files.
Supported output formatters: stylish, plain and json.
If you want to import as a function it looks like:
genDiff(<filepath1>, <filepath2>, <formatName>)
, and its outcome is the string.
For more information see examples.
git clone [email protected]:Dmitriy-SP/frontend-project-46.git
make install
npm link
$ gendiff -h
Usage: gendiff [options] <filepath1> <filepath2>
Compares two configuration files and shows a difference.
Options:
-V, --version output the version number
-f, --format <type> output format (default: "stylish")
-h, --help display help for command