Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including crconsole with all npm packages installed. Try it out:

var crconsole = require("crconsole")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

crconsole v1.4.0

Remote JavaScript console for Chrome/Webkit

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
gt; 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.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free