difference-greenfrontend
v1.0.6
Published
![run tests](https://github.com/greenfrontend/frontend-project-lvl2/workflows/run%20tests/badge.svg?branch=master&event=push) [![Maintainability](https://api.codeclimate.com/v1/badges/cc3a719f829516de1bc5/maintainability)](https://codeclimate.com/github/g
Downloads
8
Readme
frontend-project-lvl2
Compares two configuration files and shows a difference.
Install
sudo npm i -g difference-greenfrontend
Use as CLI
gendiff [options] <firstConfig> <secondConfig>
Use as library
import genDiff from 'difference-greenfrontend';
const diff = genDiff(pathToFile1, pathToFile2);
console.log(diff);
Example of usage with flat json
files
Example of usage with flat yml
files
Example of usage with flat ini
files
Example of usage with recursive format
Example of usage with plane format
Example of usage with json format
Help:
gendiff -h