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-yamlTo compare the structure:
compare-yaml struct path/to/first/file path/to/second/fileTo compare the values:
compare-yaml values path/to/first/file path/to/second/fileTo install dependencies:
bun installTo run:
bun run compare-yaml.jsTo build:
bun build --compile compare-yaml.js --outfile=compare-yamlThis project was created using bun init in bun v1.0.1. Bun is a fast all-in-one JavaScript runtime.