I am always fascinated that no matter how shiny the OS, sooner or later you’ll end up typing things into a text console to get the darn machine to do what you want it to. To make matters worse you also have to resort to languages that you don’t use every day but are from cryptic days of development where keyboards obviously had more interesting characters like ~ | — and others easily available and scripts had to have numerous | in any line of code.
In essence, Rhino is the answer for *nix machines but if you cuddle the penguin you most likely are a shell master anyways.
C:\> cscript jslint.js
Macs have a tool called JSC which is “conveniently” located in:
To make it human usable, creating a shortcut is a good plan: