Skip to content

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

License

Notifications You must be signed in to change notification settings

mosanden/compare-yaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published