Mac OS X: How do you run JavaScript script through the Terminal? (via: Stack Overflow)
Posted by jpluimers on 2014/02/11
Now I have these aliases in my ~/.bash_profile:
alias jsc='/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc'
alias JavaScript='/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc'
Now I can use the WebKit jsc from the console.
Thanks User microspino – Stack Overflow for this answer:
If you have a Mac you can get
jsca javascript console in OS X (Terminal) by typing
/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jscin
Terminal.app.You could also run one of your .js script by adding its name as an argument for jsc, like this:
jsc your_awesome_script_name.jsNotice: I use
console.log()during development but jsc needs thedebug()function instead.
–jeroen
via: How do you run JavaScript script through the Terminal? – Stack Overflow.






Chrome does not pick up on time zone changes until the browser is restarted. (via: pellepim / jsTimezoneDetect / issues / #57 – Wrong time zone using Chrome on Mac — Bitbucket) « The Wiert Corner – irregular stream of stuff said
[…] Mac OS X: How do you… on Mac OS X: editing ~/.bash_prof… […]