Enforce a structure in your yaml (or json1) files.
npm i yaml-enforce
Note: Node 14+ is required.
If you want to help out, please read the CONTRIBUTING.md.
1Since yaml 1.2 is a superset of json,
this package also works to validate json files out-of-the-box, though it is
disabled in the cli by default to prevent accidentally trying to validate config
files like package(-lock).json. Use the --json
or -j
flag to enable it.