foofaev / hexlet-nodejs-project-lvl2

cli utility to find the diff of two configs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gendiff.js

maintainability test coverage build status

A simple cli utility to find the difference betweeen two configuration files. This is a student's project provided by hexlet. For now it works with .json, .yml and .ini config files.

Project mentor - @Kirill Mokevnin.

Installation

npm install -g brasid-difference-generator

asciicast

Usage

The utility can present diff in different formats. For now there are three formats: 'standart', 'plain' and 'json'

gendiff -h

  Usage: gendiff [options] <firstConfig> <secondConfig>

  Compares two configuration files and shows a difference.

  Options:

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

Comparing files using standart output

gendiff <firstConfig> <secondConfig>

asciicast

Comparing files using plain output

gendiff -f [--format] plain <firstConfig> <secondConfig>

asciicast

Comparing files using json output

gendiff -f [--format] json <firstConfig> <secondConfig>

asciicast

About

cli utility to find the diff of two configs


Languages

Language:JavaScript 97.3%Language:Makefile 2.7%