Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript library to implement command line in browser [closed]

I would like to allow powerusers to perform certain actions on the site in a command-line like interface (think Quake console that slides in from above ;-). Is there a library that already implements the basics of what I need in the browser? Tasks like getting the input from the user, command history etc. Me and my colleagues will have limited time to implement this during a hackathon, so we want to have as much time as possible to implement the actual commands interfacing with our app.

like image 667
VoY Avatar asked Mar 29 '13 21:03

VoY


People also ask

How use JavaScript command line?

To run the REPL, just type node at the command line. You'll see a new prompt appear—this time, a > instead of a $ . As long as the prompt is > , you can type Javascript expressions and see what they evaluate to (sort of like a calculator). To exit the REPL, type .

How do I open the browser terminal?

To open the developer console in Google Chrome, open the Chrome Menu in the upper-right-hand corner of the browser window and select More Tools > Developer Tools. You can also use Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux).


1 Answers

Have a look at Josh.js for a bash-like environment in the browser:

  • http://sdether.github.com/josh.js/
like image 92
bowsersenior Avatar answered Nov 11 '22 22:11

bowsersenior