Commit 670a959 1 parent 1e5bafb commit 670a959 Copy full SHA for 670a959
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' ;
@@ -1487,8 +1486,7 @@ The following additional handling is implemented if the warning `type` is
1487
1486
### Avoiding duplicate warnings
1488
1487
1489
1488
As a best practice, warnings should be emitted only once per process. To do
1490
- so, it is recommended to place the ` emitWarning ()` behind a simple boolean
1491
- flag as illustrated in the example below:
1489
+ so, place the ` emitWarning ()` behind a boolean.
1492
1490
1493
1491
` ` ` mjs
1494
1492
import { emitWarning } from ' process' ;
You can’t perform that action at this time.
0 commit comments