esvalidate
v0.1.3
Published
A CLI for JavaScript validation
Downloads
1,006
Maintainers
Readme
esvalidate
A command line interface and npm package for ESValidate - a JavaScript validator using Esprima.
Install
To use esvalidate from any location (for npm v1.x) you need to install using the global (-g) flag.
npm install -g esvalidate
Usage
esvalidate -h
You can also require ESValidate itself as a module.
var esvalidate = require('esvalidate');
Note: If you are using npm v1.x be sure to install esvalidate locally (without the -g flag) or link it globally.
Text Editor Plugins
- sublime-esvalidate -
CTRL-SHIFT-V
on any .js file.
Custom Reporters
Specify a custom reporter module (see example/reporter.js).
--reporter path/to/reporter.js