【文件属性】:
文件名称:yaml-validate:得到验证
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-23 12:32:17
JavaScript
yaml-验证
npm i yaml-validate
使用
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
} ) ;
或者通过
为什么?
有时作为代码库的 linting 过程的一部分,您希望确保所有内容都是有效的 yaml。 该工具旨在使将 yaml 验证层集成到 CI 流程变得容易。
【文件预览】:
yaml-validate-master
----.gitignore(23B)
----package.json(320B)
----.travis.yml(77B)
----index.js(767B)
----README.md(652B)
----test()
--------index.js(617B)
--------fixtures()