Commit 8850cf9 1 parent bc4bd92 commit 8850cf9 Copy full SHA for 8850cf9
File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 7
7
<!-- source_link=lib/process.js -->
8
8
9
9
The ` process ` object provides information about, and control over, the current
10
- Node.js process. While it is available as a global, it is recommended to
11
- explicitly access it via require or import:
10
+ Node.js process.
12
11
13
12
``` mjs
14
13
import process from ' process' ;
@@ -1485,8 +1484,7 @@ The following additional handling is implemented if the warning `type` is
1485
1484
### Avoiding duplicate warnings
1486
1485
1487
1486
As a best practice, warnings should be emitted only once per process. To do
1488
- so, it is recommended to place the ` emitWarning ()` behind a simple boolean
1489
- flag as illustrated in the example below:
1487
+ so, place the ` emitWarning ()` behind a boolean.
1490
1488
1491
1489
` ` ` mjs
1492
1490
import { emitWarning } from ' process' ;
You can’t perform that action at this time.
0 commit comments