https://github.com/samccone/yaml-validate
get validating
https://github.com/samccone/yaml-validate
Last synced: 3 months ago
JSON representation
get validating
- Host: GitHub
- URL: https://github.com/samccone/yaml-validate
- Owner: samccone
- Created: 2015-02-21T21:06:09.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-21T21:53:39.000Z (over 11 years ago)
- Last Synced: 2025-03-23T04:27:24.549Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 129 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### yaml-validate
`npm i yaml-validate`
[](https://travis-ci.org/samccone/yaml-validate)
### Using
```js
yamlValidate = require('yaml-validate');
// takes a glob as a file matcher
yamlValidate('**/*.yaml')
.then(function(yamls) {
// all is well
})
.catch(function(err) {
// something is invalid
});
```
##### Or via a [grunt task](https://github.com/samccone/grunt-yaml-validate)
### Why?
Sometimes as part of a linting process for a code base you want to ensure that everything is valid yaml. This tool aims to make it easy to integrate a yaml validation layer to your CI flow.