Remote JavaScript console for Chrome/Webkit
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin cleanup Mar 8, 2016
lib initial screencast support Jun 5, 2016
plugins .react inpect WIP Mar 28, 2016
.gitignore first commit Sep 23, 2013
License first commit Sep 23, 2013
README.md enable debugger on start, add step in/out/over/continue commads #15 Mar 7, 2016
index.js Merge branch 'master' of github.com:sidorares/crconsole Jun 5, 2016
package.json initial screencast support Jun 5, 2016

README.md

crconsole

crconsole is a remote Javascript console for Chrome/Webkit that runs in your terminal:

crconsole in Terminal

Install

With node.js and the npm package manager:

npm install crconsole -g

You can now use crconsole from the command line.

Connecting

Start chrome with remote protocol enabled:

google-chrome --remote-debugging-port=9222
$> crconsole
google.com> 1+1
2

Commands

There are two extra REPL commands available beyond the standard node.js commands. .tabs lists the open tabs. .switch 2 switches to evaluating in a tab. The argument is the index of the tab to switch to.

See also

Credits

Parts of the code taken from fxconsole. Uses chrome-remote-interface to communicate with Chrome.