Skip to content

Commit 97eedfc

Browse files
eljefedelrodeodeljefervagg
authored andcommitted
doc: harmonize $ node command line notation
PR-URL: #4806 Reviewed-By: Stephan Belanger <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent 2dde0f0 commit 97eedfc

5 files changed

+11
-10
lines changed

doc/api/cluster.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if (cluster.isMaster) {
3636
Running Node.js will now share port 8000 between the workers:
3737

3838
```
39-
% NODE_DEBUG=cluster node server.js
39+
$ NODE_DEBUG=cluster node server.js
4040
23521,Master Worker 23524 online
4141
23521,Master Worker 23526 online
4242
23521,Master Worker 23523 online

doc/api/debugger.markdown

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ start Node.js with the `debug` argument followed by the path to the script to
1010
debug; a prompt will be displayed indicating successful launch of the debugger:
1111

1212
```
13-
% node debug myscript.js
13+
$ node debug myscript.js
1414
< debugger listening on port 5858
1515
connecting... ok
1616
break in /home/indutny/Code/git/indutny/myscript.js:1
@@ -41,7 +41,7 @@ console.log('hello');
4141
Once the debugger is run, a breakpoint will occur at line 4:
4242

4343
```
44-
% node debug myscript.js
44+
$ node debug myscript.js
4545
< debugger listening on port 5858
4646
connecting... ok
4747
break in /home/indutny/Code/git/indutny/myscript.js:1
@@ -78,7 +78,6 @@ break in /home/indutny/Code/git/indutny/myscript.js:5
7878
6 console.log('hello');
7979
7
8080
debug> quit
81-
%
8281
```
8382

8483
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
121120
isn't loaded yet:
122121

123122
```
124-
% ./node debug test/fixtures/break-in-module/main.js
123+
$ ./node debug test/fixtures/break-in-module/main.js
125124
< debugger listening on port 5858
126125
connecting to port 5858... ok
127126
break in test/fixtures/break-in-module/main.js:1

doc/api/http.markdown

+4-2
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,8 @@ If you would like to parse the URL into its parts, you can use
965965
`require('url').parse(request.url)`. Example:
966966

967967
```
968-
node> require('url').parse('/status?name=ryan')
968+
$ node
969+
> require('url').parse('/status?name=ryan')
969970
{
970971
href: '/status?name=ryan',
971972
search: '?name=ryan',
@@ -979,7 +980,8 @@ you can use the `require('querystring').parse` function, or pass
979980
`true` as the second argument to `require('url').parse`. Example:
980981

981982
```
982-
node> require('url').parse('/status?name=ryan', true)
983+
$ node
984+
> require('url').parse('/status?name=ryan', true)
983985
{
984986
href: '/status?name=ryan',
985987
search: '?name=ryan',

doc/api/repl.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ By executing `node` without any arguments from the command-line you will be
1111
dropped into the REPL. It has simplistic emacs line-editing.
1212

1313
```
14-
mjr:~$ node
14+
$ node
1515
Type '.help' for options.
1616
> a = [ 1, 2, 3];
1717
[ 1, 2, 3 ]
@@ -101,7 +101,7 @@ repl.start('> ').context.m = msg;
101101
Things in the `context` object appear as local within the REPL:
102102

103103
```
104-
mjr:~$ node repl_test.js
104+
$ node repl_test.js
105105
> m
106106
'message'
107107
```

doc/api/synopsis.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To run the server, put the code into a file called `example.js` and execute
2020
it with the node program
2121

2222
```
23-
> node example.js
23+
$ node example.js
2424
Server running at http://127.0.0.1:8124/
2525
```
2626

0 commit comments

Comments
 (0)