https://github.com/sindresorhus/gulp-jsvalidate
Validate JavaScript code and report possible syntax errors
https://github.com/sindresorhus/gulp-jsvalidate
gulp-plugin javascript nodejs validate-js
Last synced: 10 months ago
JSON representation
Validate JavaScript code and report possible syntax errors
- Host: GitHub
- URL: https://github.com/sindresorhus/gulp-jsvalidate
- Owner: sindresorhus
- License: mit
- Created: 2013-12-14T19:57:10.000Z (about 12 years ago)
- Default Branch: main
- Last Pushed: 2024-08-12T19:57:51.000Z (over 1 year ago)
- Last Synced: 2025-05-03T00:23:18.369Z (10 months ago)
- Topics: gulp-plugin, javascript, nodejs, validate-js
- Language: JavaScript
- Size: 27.3 KB
- Stars: 23
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# gulp-jsvalidate
> Validate JavaScript code and report possible syntax errors

The earlier you find syntax errors, the earlier you can fix them.
## Install
```sh
npm install --save-dev gulp-jsvalidate
```
## Usage
```js
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](https://exploringjs.com/impatient-js/ch_modules.html) instead of a script.