summaryrefslogtreecommitdiff
path: root/doc/api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api.txt')
-rw-r--r--doc/api.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/api.txt b/doc/api.txt
index 8b439cc96..ecc55a972 100644
--- a/doc/api.txt
+++ b/doc/api.txt
@@ -1432,8 +1432,13 @@ tcp.createServer(function (c) {
}).listen(5000);
repl.start("simple tcp server> ");
------------------------------------
-
-
+The repl provides access to any variables in the global scope. You can expose a variable
+to the repl explicitly by assigning it to the +repl.scope+ object:
+------------------------------------
+var count = 5;
+repl.start();
+repl.scope.count = count;
+------------------------------------
== Addons