Hacker News new | ask | show | jobs
by hchinchilla 5252 days ago
Thanks, I'll look how to get this working on linux.
3 comments

At least Arch has `js`package which gives you js command to obtain JS shell; in fact it is just Mozilla's SpiderMonkey. Anyway, the best option for "standalone JS" is node, mainly because it has a sane way of importing code from other files.
Alternatively, you could use Rhino Shell (https://developer.mozilla.org/en/Rhino_Shell) - it even supports tab completion!
My Chrome install on Windows has the same thing. I push ctrl+shift+c to load the developer tools, and click on console and it's a very similar tool to what he was using.