Javascript shell? Javascript shell? shell shell

Javascript shell?


According to this blog post, autocompletion is now available for Rhino, as long as the JLine library is included.


edit: after using the node REPL a bit more, I've discovered this evaluation to be overly positive. There are some serious problems with its implementation, including an inability to yank killed text, issues with editing lines that are longer than the terminal width, and some other problems. It might be better to just use rhino.

The node.js REPL (node-repl on a system with node installed) is the best terminal-based, system-context shell I've seen so far. I'm comparing it to rhino and the built-in v8 shell. It provides tab-completion and line editing history, as well as syntax-colouring of evaluations. You can also import CommonJS modules, or at least those modules implemented by node.

Downside is that you have to build node. This is not a huge deal, as building apps goes, but might be a challenge if you don't normally do such things.


http://www.faqts.com/knowledge_base/view.phtml/aid/1438 lists some JavaScript interpreters. I am not about to download them to confirm they have (tab?) completion.

[I'm not sure what you mean by auto-completion, since that implies more of an IDE-type approach].

Is this for web-based development/debugging? If so, I can really recommend the squarefree JS shell bookmarklet for Firefox, which was listed in the linked post. True, it is not standalone, but does have tab completion.