| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent eb33629 commit 6dd0772
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,8 +7,7 @@ | |||
| 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'; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments