Socket
Socket
Sign inDemoInstall

gulp-json-validator

Package Overview
Dependencies
13
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
573
decreased by-2.39%
Maintainers
1
Created
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

FAQs

Last updated on 16 Feb 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc