Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rabinzon/cl-diff-tool
Compares two configuration files and shows a difference.
https://github.com/rabinzon/cl-diff-tool
Last synced: 25 days ago
JSON representation
Compares two configuration files and shows a difference.
- Host: GitHub
- URL: https://github.com/rabinzon/cl-diff-tool
- Owner: Rabinzon
- Created: 2017-10-16T07:28:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-28T06:36:42.000Z (almost 7 years ago)
- Last Synced: 2024-11-18T09:12:45.895Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 98.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# cl-diff-tool
Compares two configuration files and shows a difference.[![Build Status](https://travis-ci.org/Rabinzon/cl-diff-tool.svg?branch=master)](https://travis-ci.org/Rabinzon/cl-diff-tool)
### Usige```sh
$ npm i -g cl-diff-tool
$ gendiff [options]
```
### Options
```
-h, --help output usage information
-V, --version output the version number
-f, --format [json|plain] output format
```### Example
```sh
$ cat data1.json{
"name":"John",
"age":30,
"cars":[ "Ford", "BMW", "Fiat" ]
}
``````sh
$ cat data2.json{
"name":"John",
"age":50,
"cars": ["Tesla"],
"children": {
"name": "Den",
"age": 20,
"cars": "BMW"
}
}
``````sh
$ gendiff data1.json data2.json
{
name: John
+ age: 50
- age: 30
cars: {
+ 0: Tesla
- 0: Ford
- 1: BMW
- 2: Fiat
}
+ children: {
name: Den
age: 20
cars: BMW
}
}
```