alexp11223/gendiff
Composer 安装命令:
composer create-project alexp11223/gendiff
包简介
hexlet.io project 2
关键字:
README 文档
README
gendiff
Compares two JSON, YAML files and shows the changes between them in different formats: pretty, plain, json.
Installation
- Install PHP 7.2+ and Composer.
- Run
composer global require alexp11223/gendiff. - Make sure that the Composer global bin dir (
composer global config bin-dir --absolute) is in yourPATH.
Usage
gendiff [--format <fmt>] <firstFile> <secondFile>
Examples:
gendiff before.json after.json
gendiff before.yaml after.yaml
gendiff before.json after.yaml
gendiff before.json after.json --format plain
gendiff before.json after.json --format json
pretty
Human-readable JSON-like format similar to diff.
Flat files:
Nested objects:
plain
Textual description of the changes.
json
JSON tree describing the changes, intended for automated processing.
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-11