We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04dd2d5 commit 52f088bCopy full SHA for 52f088b
1 file changed
lib/repl.js
@@ -10,6 +10,8 @@ var scopeFunc = /^\s*function\s*([_\w\$]+)/;
10
11
exports.scope = {};
12
exports.prompt = "node> ";
13
+// Can overridden with custom print functions, such as `probe` or `eyes.js`
14
+exports.writer = sys.p;
15
exports.start = function (prompt) {
16
if (prompt !== undefined) {
17
exports.prompt = prompt;
@@ -46,7 +48,7 @@ function readline (cmd) {
46
48
var ret = eval(buffered_cmd);
47
49
if (ret !== undefined) {
50
exports.scope['_'] = ret;
- sys.p(ret);
51
+ exports.writer(ret);
52
}
53
54
0 commit comments