@@ -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 ();
@@ -924,8 +914,6 @@ include the Node.js executable, the name of the script, or any options following
924
914
the script name. These options are useful in order to spawn child processes with
925
915
the same execution environment as the parent.
926
916
927
- For example:
928
-
929
917
``` console
930
918
$ node --harmony script.js --version
931
919
```
@@ -954,8 +942,6 @@ added: v0.1.100
954
942
The ` process.execPath ` property returns the absolute pathname of the executable
955
943
that started the Node.js process.
956
944
957
- For example:
958
-
959
945
<!-- eslint-disable semi -->
960
946
``` js
961
947
' /usr/local/bin/node'
@@ -1227,8 +1213,6 @@ Even though the name of this function is `process.kill()`, it is really just a
1227
1213
signal sender, like the ` kill ` system call. The signal sent may do something
1228
1214
other than kill the target process.
1229
1215
1230
- For example:
1231
-
1232
1216
``` js
1233
1217
process .on (' SIGHUP' , () => {
1234
1218
console .log (' Got SIGHUP signal.' );
@@ -1504,8 +1488,6 @@ tarball.
1504
1488
- ` 'Boron' ` for the 6.x LTS line beginning with 6.9.0.
1505
1489
- ` 'Carbon' ` for the 8.x LTS line beginning with 8.9.1.
1506
1490
1507
- For example:
1508
-
1509
1491
<!-- eslint-skip -->
1510
1492
``` js
1511
1493
{
@@ -1709,8 +1691,6 @@ The `process.stdin` property returns a stream connected to
1709
1691
stream) unless fd ` 0 ` refers to a file, in which case it is
1710
1692
a [ Readable] [ ] stream.
1711
1693
1712
- For example:
1713
-
1714
1694
``` js
1715
1695
process .stdin .setEncoding (' utf8' );
1716
1696
0 commit comments