/compare-yaml

CLI tool to compare the structure or values of two YAML files.

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

compare-yaml

This CLI tool can compare the values or structure of two YAML files. It will output the keys/values of the first file that differ from the second file.

Install

wget https://github.com/mosanden/compare-yaml/releases/latest/download/compare-yaml -O /usr/bin/compare-yaml &&\
    chmod +x /usr/bin/compare-yaml

Usage

To compare the structure:

compare-yaml struct path/to/first/file path/to/second/file

To compare the values:

compare-yaml values path/to/first/file path/to/second/file

Develop

To install dependencies:

bun install

To run:

bun run compare-yaml.js

To build:

bun build --compile compare-yaml.js --outfile=compare-yaml

This project was created using bun init in bun v1.0.1. Bun is a fast all-in-one JavaScript runtime.