@@ -58,8 +58,6 @@ The listener callback function is invoked with the exit code specified either
58
58
by the [ ` process.exitCode ` ] [ ] property, or the ` exitCode ` argument passed to the
59
59
[ ` process.exit() ` ] method, as the only argument.
60
60
61
- For example:
62
-
63
61
``` js
64
62
process .on (' exit' , (code ) => {
65
63
console .log (` About to exit with code: ${ code} ` );
@@ -129,8 +127,6 @@ In asynchronous code, the `'unhandledRejection'` event is emitted when the list
129
127
of unhandled rejections grows, and the ` 'rejectionHandled' ` event is emitted
130
128
when the list of unhandled rejections shrinks.
131
129
132
- For example:
133
-
134
130
``` js
135
131
const unhandledRejections = new Map ();
136
132
process .on (' unhandledRejection' , (reason , p ) => {
@@ -161,8 +157,6 @@ behavior.
161
157
The listener function is called with the ` Error ` object passed as the only
162
158
argument.
163
159
164
- For example:
165
-
166
160
``` js
167
161
process .on (' uncaughtException' , (err ) => {
168
162
fs .writeSync (1 , ` Caught exception: ${ err} \n ` );
@@ -230,8 +224,6 @@ The listener function is called with the following arguments:
230
224
(typically an [ ` Error ` ] [ ] object).
231
225
* ` p ` the ` Promise ` that was rejected.
232
226
233
- For example:
234
-
235
227
``` js
236
228
process .on (' unhandledRejection' , (reason , p ) => {
237
229
console .log (' Unhandled Rejection at:' , p, ' reason:' , reason);
@@ -355,8 +347,6 @@ The signal handler will receive the signal's name (`'SIGINT'`,
355
347
The name of each event will be the uppercase common name for the signal (e.g.
356
348
` 'SIGINT' ` for ` SIGINT ` signals).
357
349
358
- For example:
359
-
360
350
``` js
361
351
// Begin reading from stdin so the process does not exit.
362
352
process .stdin .resume ();
@@ -925,8 +915,6 @@ include the Node.js executable, the name of the script, or any options following
925
915
the script name. These options are useful in order to spawn child processes with
926
916
the same execution environment as the parent.
927
917
928
- For example:
929
-
930
918
``` console
931
919
$ node --harmony script.js --version
932
920
```
@@ -955,8 +943,6 @@ added: v0.1.100
955
943
The ` process.execPath ` property returns the absolute pathname of the executable
956
944
that started the Node.js process.
957
945
958
- For example:
959
-
960
946
<!-- eslint-disable semi -->
961
947
``` js
962
948
' /usr/local/bin/node'
@@ -1229,8 +1215,6 @@ group.
1229
1215
really just a signal sender, like the ` kill ` system call. The signal sent may
1230
1216
do something other than kill the target process.
1231
1217
1232
- For example:
1233
-
1234
1218
``` js
1235
1219
process .on (' SIGHUP' , () => {
1236
1220
console .log (' Got SIGHUP signal.' );
@@ -1506,8 +1490,6 @@ tarball.
1506
1490
- ` 'Boron' ` for the 6.x LTS line beginning with 6.9.0.
1507
1491
- ` 'Carbon' ` for the 8.x LTS line beginning with 8.9.1.
1508
1492
1509
- For example:
1510
-
1511
1493
<!-- eslint-skip -->
1512
1494
``` js
1513
1495
{
@@ -1712,8 +1694,6 @@ The `process.stdin` property returns a stream connected to
1712
1694
stream) unless fd ` 0 ` refers to a file, in which case it is
1713
1695
a [ Readable] [ ] stream.
1714
1696
1715
- For example:
1716
-
1717
1697
``` js
1718
1698
process .stdin .setEncoding (' utf8' );
1719
1699
0 commit comments