🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

gulp-json-validator

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-json-validator

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

1.2.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

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

Keywords

jsonvalidator

FAQs

Package last updated on 16 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts