/config-difference-generator

CLI utility. Compares two configuration files and shows a difference in three formats. Supported config file types: JSON, YAML and INI.

Primary LanguageJavaScript

Maintainability Test Coverage Node.js CI

Config Difference Generator

This is utility running from terminal.

Compares two configuration files and shows a difference in three output formats: default, plain and json.

Supported config file types: JSON, YAML and INI.

This project was reviewed by Hexlet.

Install

npm i -g config-difference-generator

Usage

Type in terminal from folder with config files:

gendiff -f [output format] <first-config> <second-config>

Options

  -V, --version        output the version number
  -f, --format [type]  output format: default, plain or json (default: "default")
  -h, --help           display help for command

Used in project:

  • commander
  • ini and js-yaml parsers
  • lodash
  • jest
  • eslint

Different config types in default output format

Output formats

Different config types

JSON type

YAML type

INI type

Output formats

Default

Plain

Json