Skip to content

📈 Utility which show a difference between two configuration files

Notifications You must be signed in to change notification settings

nosaxa/frontend-project-lvl2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actions Status Maintainability Test Coverage

Difference Generator

CLI app, which compares two configuration files and shows a difference. The utility supports the following input data formats: json, yaml/yml. The output report can be generated in one of the following formats: stylish (default), plain, json.

Installation

  1. Clone this repository to your local machine: git clone git@github.com:nosaxa/frontend-project-lvl2.git

  2. Install dependencies: make install

  3. Publish the package locally: make publish

  4. Install the package from local storage: npm link

Usage

Usage: gendiff [options] <filepath1> <filepath2>

Compares two configuration files and shows a difference.

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

Examples

Comparison JSON files (default output)

asciicast

Comparison YAML files (plain output)

asciicast

Comparison YAML and JSON files (JSON output)

asciicast

About

📈 Utility which show a difference between two configuration files

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published