Forked from ericfried's original gist; cleaned up some broken links, fixed a shell script bug, and added some optional setup.
I just realized that there is a rather well hidden javascript interpreter in the mac os x terminal out of the box. /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc See http://www.phpied.com/javascript-shell-scripting/
Then i figured it coud be quite easy to set up a command line util to run jslint from anywhere. Thought i´d share how.
- Download and unzip this gist.
- Download Douglas Crockfords jslint from here https://github.com/douglascrockford/JSLint.