#gulp-yaml-validate
npm install --save-dev gulp-yaml-validate
var yaml = require('gulp-yaml-validate');
gulp.src('./src/*.yml')
.pipe(yaml());
gulp.src('./src/*.yml')
.pipe(yaml({ safe: true }));
gulp.src('./src/*.yml')
.pipe(yaml({ html: true }));
Type: Boolean
Default: false
Enable or disable support for regexps, functions and undefined.
This flag should be enabled when working with untrusted data.
Type: Number
or String
Default: null
Control spacing in the resulting output. It has the same usage as for JSON.stringify
Type: Function
or Array
Default: null
Further transform the resulting output. It has the same usage as for JSON.stringify
Type: Boolean
Default: false
Enable or disable support for html tags in yaml strings.
This flag should be enabled when working with untrusted data.
MIT ©