0.0.2 • Published 6 years ago

frontend-project-lvl2-by-va v0.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

Maintainability Build Status Test Coverage

Description

The command line utility compares two configuration files and shows a difference. The utility supports the following input data formats: json, yaml, ini. The output report can be generated in one of the following formats: pretty (default), plain, json.

Download

$ git clone https://github.com/baseven/frontend-project-lvl2.git

Instalation

Navigate to the project directory and follow the steps below:

  1. Install dependencies:
$ make install
  1. Publish the package locally:
$ make publish
  1. Install the package from local storage:
$ npm link

Usage

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

Compares two configuration files and shows a difference.

Options:
  -V, --version        output the version number
  -f, --format [type]  Output format (default: "pretty")
  -h, --help           output usage information

Examples

Compare json files and show the difference in the pretty output format

asciicast

Compare yaml files and show the difference in the plain output format

asciicast

Compare ini files and show the difference in the json output format

asciicast