- It’s awesome.
- It’s elegant.
- It can make no sense whatsoever until you figure out certain principles.
Check out some of the modules that are available to use.
Getting to the point
There is an npm for jslint!
With NPM and nodeJS you can do this straight from the command line, and even include it as a step in a build script.
- Install nodeJS
- Open a command prompt
- Type “npm install jslint -g”
- Type “jslint <path to your scripts.js file>”
The magic here is that when you type jslint … what is actually happening is the jslint module is started using nodeJS. It is then feeding your scripts.js file through that jslint package and producing the good/bad message results.
Cool huh? Let me know what you think.