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.
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 .
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).
Have a look at Josh.js for a bash-like environment in the browser:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With