diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-01-01 21:54:46 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-01-01 21:54:46 -0800 |
commit | 2e3e95ee89045966dbd6bf955c319ab448c1c85e (patch) | |
tree | e921ae2248f6f7245171f8332ce025c0ac626434 /doc/api/repl.markdown | |
parent | c82fe30ca14c815aa4c5d6126dd39ba1f5ea7c6d (diff) | |
download | node-2e3e95ee89045966dbd6bf955c319ab448c1c85e.tar.gz |
add process.stdin
Diffstat (limited to 'doc/api/repl.markdown')
-rw-r--r-- | doc/api/repl.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/repl.markdown b/doc/api/repl.markdown index 8ae3623a4..1bdb4f2fc 100644 --- a/doc/api/repl.markdown +++ b/doc/api/repl.markdown @@ -27,11 +27,11 @@ For example, you could add this to your bashrc file: alias node="env NODE_NO_READLINE=1 rlwrap node" -### repl.start(prompt='> ', stream=process.openStdin()) +### repl.start(prompt='> ', stream=process.stdin) Starts a REPL with `prompt` as the prompt and `stream` for all I/O. `prompt` is optional and defaults to `> `. `stream` is optional and defaults to -`process.openStdin()`. +`process.stdin`. Multiple REPLs may be started against the same running instance of node. Each will share the same global object but will have unique I/O. |