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.
wget https://github.com/mosanden/compare-yaml/releases/latest/download/compare-yaml -O /usr/bin/compare-yaml &&\
chmod +x /usr/bin/compare-yaml
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
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.