An open API service indexing awesome lists of open source software.

https://github.com/samccone/yaml-validate

get validating
https://github.com/samccone/yaml-validate

Last synced: 3 months ago
JSON representation

get validating

Awesome Lists containing this project

README

          

### yaml-validate

`npm i yaml-validate`

[![Build Status](https://travis-ci.org/samccone/yaml-validate.svg)](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.