gulp-json-structure-validator
v1.0.2
Published
A json structure validator that has an option to check for forgotten keys on json files (configurations, i18n, ...).
Downloads
80
Maintainers
Readme
gulp-json-structure-validator
(https://www.npmjs.com/package/gulp-json-structure-validator)
A gulp plugin that has an option to check for forgotten keys on json files (configurations, i18n, ...).
Install
npm install gulp-json-structure-validator
Usage
var gulp = require('gulp');
var path = require('path');
var gulpJsonStructureValidator = require('gulp-json-structure-validator');
gulp.task('default', function() {
return gulp.src('./**/locale/*.json')
.pipe(gulpJsonStructureValidator({ template: path.join(__dirname, './locale/es.json') }))
});
gulpJsonStructureValidator([options])
Options
template
Type: String
Template file path to compare