Skip to content

Latest commit

 

History

History
executable file
·
31 lines (20 loc) · 847 Bytes

Readme.md

File metadata and controls

executable file
·
31 lines (20 loc) · 847 Bytes

Gendiff

Maintainability Build Status

Compares two configuration files and shows a difference

Supported config formats: .json, .yml, .ini

Output formats: plain text, tree, json

Install

npm install -g gendiff-lozovsky

Usage

gendiff [options] <firstConfig> <secondConfig>

Options

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

You can use it in your code

import gendiff from 'gendiff-lozovsky';

const diff = gendiff('./firstConfig.yml', './firstConfig.yml', 'json');