Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

gulp-json-validator

Package Overview
Dependencies
3
Maintainers
1
Versions
8
Issues
File Explorer

Advanced tools

gulp-json-validator

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

    1.2.0latest

Version published
Maintainers
1
Yearly downloads
8,808
decreased by-18.53%

Weekly downloads

Readme

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

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc