Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

compare-files

0.7.1 • Public • Published

Build Status Maintainability

About

Compares two files, shows how they differ.

Installation

> npm install -g compare-files

Usage

Let's say you have two json files:

file1.json

{
    "host": "hexlet.io",
    "timeout": 50,
    "proxy": "123.234.53.22"
}

file2.json

{
    "timeout": 20,
    "verbose": true,
    "host": "hexlet.io"
}

To find out the differences between those two files, run gendiff in the terminal with paths to the files. For example:

> gendiff file1.json file2.json --format plain
Property 'timeout' was updated from '50' to '20'
Property 'proxy' was removed
Property 'verbose' was added with 'true'

Supported formats

  • json,
  • yaml,
  • ini.

Output formats

  • plain text,
  • json.

Keywords

install

npm i compare-files

Downloadsweekly downloads

3

version

0.7.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability