summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2022-03-31 20:14:44 -0700
committerJuan José Arboleda <soyjuanarbol@gmail.com>2022-04-06 12:25:52 -0500
commit1c614184da8e3fc9ddc8aead7117b81b4d439763 (patch)
treeb6f73a87d9d3bba0a3a1847259c216dd693491e5
parent256509056d97035753ceef4a8e9ce46addacf26d (diff)
downloadnode-new-1c614184da8e3fc9ddc8aead7117b81b4d439763.tar.gz
doc: simplify recommendations in process.md
Remove recommendation that has no explanation. Make the other recommendation less wordy. PR-URL: https://github.com/nodejs/node/pull/42556 Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
-rw-r--r--doc/api/process.md6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/api/process.md b/doc/api/process.md
index 62974ff85f..c375f1ea05 100644
--- a/doc/api/process.md
+++ b/doc/api/process.md
@@ -7,8 +7,7 @@
<!-- source_link=lib/process.js -->
The `process` object provides information about, and control over, the current
-Node.js process. While it is available as a global, it is recommended to
-explicitly access it via require or import:
+Node.js process.
```mjs
import process from 'process';
@@ -1487,8 +1486,7 @@ The following additional handling is implemented if the warning `type` is
### Avoiding duplicate warnings
As a best practice, warnings should be emitted only once per process. To do
-so, it is recommended to place the `emitWarning()` behind a simple boolean
-flag as illustrated in the example below:
+so, place the `emitWarning()` behind a boolean.
```mjs
import { emitWarning } from 'process';