[ Launch: An inlet to Tributary ] 4567112 by sym3tri
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/raw/master/fulljslint.js.
- Edit the 'jslint' shell script and set the paths to where you saved the .js files.
- Chmod the 'jslint' shell script (
chmod +x
)