npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

yaml-validate

0.1.0

@samccone

npmSnykSocket
Downloads:17
$ npm install yaml-validate
DailyWeeklyMonthlyYearly

yaml-validate

npm i yaml-validate

Build Status

Using

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
});

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.