code-pump
v0.2.3
Published
eval / "repl" support for nodejs (particular in combination with LivelyWeb)
Downloads
13
Maintainers
Readme
code-pump
Live develop your nodejs app and inspect its state, from a nodejs-workspace in Lively Web!
nodejs code injection, extraction, and evaluation. Can evaluate in the context of modules by using lively.vm.
Also supports nodejs process creation for "workspace processes". Controlled either directly via the evaluator / process interfaces or via websockets. Ws server is part of the package.
Usage
Option 1: start code-pump from the command line
npm install code-pump --save-dev
PATH=$(npm bin):$PATH code-pump localhost:9004
- In Lively, open a nodejs-workspace, click on the red "disconnected" button, and enter ws://localhost:9004
Option 2: start code-pump with your nodejs app
require("code-pump").start("localhost", 9004, err =>
console.log(err ? "Code pump error:" + err : "code-pump started!"););
Then connect as in 3. above.