gulp-jsvalidate

Validate JavaScript code and report possible syntax errors

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gulp-jsvalidate
2306.0.07 months ago10 years agoMinified + gzip package size for gulp-jsvalidate in KB

Readme

gulp-jsvalidate
Validate JavaScript code and report possible syntax errors


The earlier you find syntax errors, the earlier you can fix them.

Install

npm install --save-dev gulp-jsvalidate

Usage

import gulp from 'gulp';
import jsValidate from 'gulp-jsvalidate';

export default () => (
	gulp.src('app.js')
		.pipe(jsValidate())
);

API

gulpJsValidate(options?)

options

Type: object
module
Type: boolean\ Default: true
Parse the JavaScript code as a ES2015 module instead of a script.