yaml-verify
v1.0.19
Published
A CLI utility to ensure proper formatting of YAML files.
Maintainers
Readme
yaml-verify
yaml-verify is a command-line utility designed to validate YAML files, ensuring they are free from syntax errors and duplicate keys, thus enhancing the integrity of your YAML configurations.
Features
- Syntax Validation: Ensures your YAML files are syntactically correct.
- Unique Key Validation: Checks for and prevents duplicate keys at each level in your YAML files.
- CLI Flexibility: Easy-to-use command-line interface to validate files or directories containing YAML files.
- Cross-Platform: Works on Windows, macOS, and Linux.
Installation
To install yaml-verify globally, use npm:
npm install -g yaml-verifyUsage
To validate a single YAML file:
yaml-verify path/to/file.yamlTo validate multiple YAML files:
yaml-verify path/to/file1.yaml path/to/file2.yamlTo validate all YAML files in a directory:
yaml-verify path/to/directoryOptions
-h, --help: Display help information.-v, --version: Display the current version of yaml-verify.
Examples
Validate a single YAML file:
yaml-verify config.yamlValidate multiple YAML files:
yaml-verify config.yaml data.yamlValidate all YAML files in a directory:
yaml-verify /path/to/configs/Contributing
Contributions to yaml-verify are welcome! Please refer to the Contributing Guidelines for more information.
License
This project is licensed under the MIT License.
Support
If you encounter any issues or have any questions about yaml-verify, please file an issue on the GitHub repository.
