summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Jefe Lindstaedt <robert.lindstaedt@gmail.com>2016-01-21 23:21:22 +0100
committerRoman Reiss <me@silverwind.io>2016-01-22 19:57:19 +0100
commit4e1023d6b49efe03c24780b5a17fa27987f5bd4e (patch)
treed3a5ee1974e6b4080f74d36ea8eaf38179044f75
parent2bcea02e240c521358fd9992d156e16047245f4e (diff)
downloadandroid-node-v8-4e1023d6b49efe03c24780b5a17fa27987f5bd4e.tar.gz
android-node-v8-4e1023d6b49efe03c24780b5a17fa27987f5bd4e.tar.bz2
android-node-v8-4e1023d6b49efe03c24780b5a17fa27987f5bd4e.zip
doc: harmonize $ node command line notation
PR-URL: https://github.com/nodejs/node/pull/4806 Reviewed-By: Stephan Belanger <admin@stephenbelanger.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
-rw-r--r--doc/api/cluster.markdown2
-rw-r--r--doc/api/debugger.markdown7
-rw-r--r--doc/api/http.markdown6
-rw-r--r--doc/api/repl.markdown4
-rw-r--r--doc/api/synopsis.markdown2
5 files changed, 11 insertions, 10 deletions
diff --git a/doc/api/cluster.markdown b/doc/api/cluster.markdown
index 554bedcf08..63e1ba125c 100644
--- a/doc/api/cluster.markdown
+++ b/doc/api/cluster.markdown
@@ -36,7 +36,7 @@ if (cluster.isMaster) {
Running Node.js will now share port 8000 between the workers:
```
-% NODE_DEBUG=cluster node server.js
+$ NODE_DEBUG=cluster node server.js
23521,Master Worker 23524 online
23521,Master Worker 23526 online
23521,Master Worker 23523 online
diff --git a/doc/api/debugger.markdown b/doc/api/debugger.markdown
index f7aec3d58c..fbaf5ef46f 100644
--- a/doc/api/debugger.markdown
+++ b/doc/api/debugger.markdown
@@ -10,7 +10,7 @@ start Node.js with the `debug` argument followed by the path to the script to
debug; a prompt will be displayed indicating successful launch of the debugger:
```
-% node debug myscript.js
+$ node debug myscript.js
< debugger listening on port 5858
connecting... ok
break in /home/indutny/Code/git/indutny/myscript.js:1
@@ -41,7 +41,7 @@ console.log('hello');
Once the debugger is run, a breakpoint will occur at line 4:
```
-% node debug myscript.js
+$ node debug myscript.js
< debugger listening on port 5858
connecting... ok
break in /home/indutny/Code/git/indutny/myscript.js:1
@@ -78,7 +78,6 @@ break in /home/indutny/Code/git/indutny/myscript.js:5
6 console.log('hello');
7
debug> quit
-%
```
The `repl` command allows code to be evaluated remotely. The `next` command
@@ -121,7 +120,7 @@ It is also possible to set a breakpoint in a file (module) that
isn't loaded yet:
```
-% ./node debug test/fixtures/break-in-module/main.js
+$ ./node debug test/fixtures/break-in-module/main.js
< debugger listening on port 5858
connecting to port 5858... ok
break in test/fixtures/break-in-module/main.js:1
diff --git a/doc/api/http.markdown b/doc/api/http.markdown
index d557c649f8..9af9513321 100644
--- a/doc/api/http.markdown
+++ b/doc/api/http.markdown
@@ -975,7 +975,8 @@ If you would like to parse the URL into its parts, you can use
`require('url').parse(request.url)`. Example:
```
-node> require('url').parse('/status?name=ryan')
+$ node
+> require('url').parse('/status?name=ryan')
{
href: '/status?name=ryan',
search: '?name=ryan',
@@ -989,7 +990,8 @@ you can use the `require('querystring').parse` function, or pass
`true` as the second argument to `require('url').parse`. Example:
```
-node> require('url').parse('/status?name=ryan', true)
+$ node
+> require('url').parse('/status?name=ryan', true)
{
href: '/status?name=ryan',
search: '?name=ryan',
diff --git a/doc/api/repl.markdown b/doc/api/repl.markdown
index 65e05a5062..d670ed4c1d 100644
--- a/doc/api/repl.markdown
+++ b/doc/api/repl.markdown
@@ -11,7 +11,7 @@ By executing `node` without any arguments from the command-line you will be
dropped into the REPL. It has simplistic emacs line-editing.
```
-mjr:~$ node
+$ node
Type '.help' for options.
> a = [ 1, 2, 3];
[ 1, 2, 3 ]
@@ -101,7 +101,7 @@ repl.start('> ').context.m = msg;
Things in the `context` object appear as local within the REPL:
```
-mjr:~$ node repl_test.js
+$ node repl_test.js
> m
'message'
```
diff --git a/doc/api/synopsis.markdown b/doc/api/synopsis.markdown
index 57e2e3ce4c..7dd3b8fe99 100644
--- a/doc/api/synopsis.markdown
+++ b/doc/api/synopsis.markdown
@@ -20,7 +20,7 @@ To run the server, put the code into a file called `example.js` and execute
it with the node program
```
-> node example.js
+$ node example.js
Server running at http://127.0.0.1:8124/
```