gendiff-gkoil

1.0.0 • Public • Published

Node CI Maintainability Test Coverage Dependency Status devDependency Status time tracker

About

This program for working in the console, which allows to detect differences between three data formats (json, yml, ini) and output them in three different styles ('stylish', 'plain text' and 'json'). You can use different file formats for comparison (for example, json and ini).

Installation

You can install gendiff with npm or build it from source.
You must have node.js installed on your computer (version 14.0 or higher).

npm package

To install gendiff using npm run

npm i -g gendiff-gkoil

build

  1. Clone the project on your computer
    git clone git@github.com:GKoil/GenDiff.git
    
  2. Install dependencies
    npm i
    
  3. Build this project
    make publish
    
  4. Install it
    make link
    

Usage

Type gendiff in the console and pass the path parameters to the files

gendiff ~/project1/before.json ~/project2/after.json

Also you can youse difference output formats

Options

-V
Find out the version
Example:

gendiff -V

-h
Get help in console
Example:

gendiff -h

-f
Choose output stylish format.
Example:

gendiff -f plain file1.json file2.json

Examples

Stylish

Stylish formatter

Plain

Plain formatter

JSON

JSON formatter

Package Sidebar

Install

npm i gendiff-gkoil

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

16.5 kB

Total Files

22

Last publish

Collaborators

  • gkoil