File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 77<!-- source_link=lib/process.js -->
88
99The ` 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.
1211
1312``` mjs
1413import process from ' process' ;
@@ -1487,8 +1486,7 @@ The following additional handling is implemented if the warning `type` is
14871486### Avoiding duplicate warnings
14881487
14891488As 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.
14921490
14931491` ` ` mjs
14941492import { emitWarning } from ' process' ;
You can’t perform that action at this time.
0 commit comments