Skip to content

Instantly share code, notes, and snippets.

View JeNeSuisPasDave's full-sized avatar

Dave Hein JeNeSuisPasDave

View GitHub Profile
@JeNeSuisPasDave
JeNeSuisPasDave / README.markdown
Created March 17, 2012 20:29 — forked from erikfried/README.markdown
shell script to invoke jslint via jsc on Mac OS X

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.

Setup