Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Hexlet tests:

Actions Status Eslint and Tests Status Maintainability Test Coverage

Quick Start:

git clone git@github.com:koder-dev/frontend-project-2
make install
npm link

Help

$ gendiff -h
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
  -h, --help           display help for command

Examples

$ gendiff -f stylish filepath1 filepath2
{
  - follow: false
    host: hexlet.io
  - proxy: 123.234.53.22
  - timeout: 50
  + timeout: 20
  + verbose: true
}
$ gendiff -f plain filepath1 filepath2
Property 'follow' was removed
Property 'proxy' was removed
Property 'timeout' was updated. From 50 to 20
Property 'verbose' was added with value: true
$ gendiff -f json filepath1 filepath2
[{"key":"follow","status":"deleted","value":false},{"key":"host","status":"notChanged","value":"hexlet.io"},{"key":"proxy","status":"deleted","value":"123.234.53.22"},{"key":"timeout","status":"updated","value1":50,"value2":20},{"key":"verbose","status":"added","value":true}]

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages