gulp-json-validator
v1.2.0
Published
A json validator that has an option to check for duplicated keys
Downloads
4,801
Maintainers
Readme
gulp-json-validator
A gulp wrapper around json-dup-key-validator that has an option to check for duplicated keys.
Install
npm install gulp-json-validator
Usage
var gulpJsonValidator = require('gulp-json-validator');
gulp.task('default', function() {
return gulp.src('./**/*.json')
.pipe(gulpJsonValidator({ allowDuplicatedKeys: false }))
});
gulpJsonValidator([options])
Options
allowDuplicatedKeys
Type: Boolean
Default: false
Whether duplicated keys are allowed in an object or not