@romezzz/gendiff

1.5.1 • Public • Published

gendiff

Maintainability Build Status

Description

Compare two configuration files and shows a difference.

Output example

{
    host: hexlet.io
  - timeout: 50
  + timeout: 20
  - proxy: 123.234.53.22
  - follow: false
    common: {
        setting1: Value 1
      - setting2: 200
      - setting3: true
      + setting3: {
            key: value
        }
        setting6: {
            key: value
          + ops: vops
        }
      + follow: false
      + setting4: blah blah
      + setting5: {
            key5: value5
        }
    }
    group1: {
      - baz: bas
      + baz: bars
        foo: bar
      - nest: {
            key: value
        }
      + nest: str
    }
  - group2: {
        abc: 12345
    }
  + verbose: true
  + group3: {
        fee: 100500
    }
}

Options

-V, --version output the version number

-f, --format [type] Output format [pretty, json, plain] (default: "pretty")

-k, --key-only Generate only keys diff (default: false)

-h, --help output usage information

Installation

npm i -g @romezzz/gendiff

Usage json

asciicast

Usage yaml

asciicast

Usage ini

asciicast

Nested data

asciicast

Output formats: pretty(defalut), plain, json

asciicast

Key only output:

asciicast

Package Sidebar

Install

npm i @romezzz/gendiff

Weekly Downloads

0

Version

1.5.1

License

MIT

Unpacked Size

74.3 kB

Total Files

21

Last publish

Collaborators

  • romezzz