gulp-json-validator

A json validator that has an option to check for duplicated keys

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gulp-json-validator
111.2.05 years ago7 years agoMinified + gzip package size for gulp-json-validator in KB

Readme

gulp-json-validator NPM version Build Status
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