config-compare-light
v0.2.2
Published
Config comparation and patchiong utility
Downloads
1
Readme
Config comparation
Compare and reports the difference of 2 config files in json, yaml or ini formats.
Local usage
npm install config-compare-light
Global usage
npm install -g config-compare-light
gendiff first.file second.file [-f format]
where format: standart, plain or json
API
compare from files
import { diffFromFiles } from 'config-compare-light';
diffFromFiles(first.file.path, second.file.path [, format]);
compare from strings
import diffFromStrings from 'config-compare-light';
diffFromStrings(first.file.string, second.file.string, first.file.format, second.file.format [, format]);