From 39f2deab004acdb90a2979b495d030696c2a19d6 Mon Sep 17 00:00:00 2001 From: dkundel Date: Tue, 19 Mar 2019 17:45:00 -0700 Subject: [PATCH 1/3] doc: add option to require 'process' to api docs It is possible to require the 'process' module and with the upcoming support for ES Modules, importing 'process' might be the more favorable way for developers. This commit adds that option to the documentation. --- doc/api/process.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/api/process.md b/doc/api/process.md index 2aaf11105a1c3e..8993228a630922 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -5,7 +5,12 @@ The `process` object is a `global` that provides information about, and control over, the current Node.js process. As a global, it is always available to -Node.js applications without using `require()`. +Node.js applications without using `require()`. However, it can also be +explicitly accessed using `require()`: + +```js +const process = require('process'); +``` ## Process Events From abda1502e4612df4b0201bfcb351fbc9608f3fd9 Mon Sep 17 00:00:00 2001 From: dkundel Date: Tue, 19 Mar 2019 18:16:16 -0700 Subject: [PATCH 2/3] doc: update wording in process api doc Remove unnecessary word from API documentation. --- doc/api/process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/process.md b/doc/api/process.md index 8993228a630922..cc08512256c501 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -5,7 +5,7 @@ The `process` object is a `global` that provides information about, and control over, the current Node.js process. As a global, it is always available to -Node.js applications without using `require()`. However, it can also be +Node.js applications without using `require()`. It can also be explicitly accessed using `require()`: ```js From f38545ee8bf0471ac2e7a5e1f86bc73282f4e3f0 Mon Sep 17 00:00:00 2001 From: dkundel Date: Tue, 19 Mar 2019 18:17:49 -0700 Subject: [PATCH 3/3] doc: update line break in process api docs Adjust paragraph to 80 character wrap limit --- doc/api/process.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index cc08512256c501..27ba6db319ac8e 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -5,8 +5,8 @@ The `process` object is a `global` that provides information about, and control over, the current Node.js process. As a global, it is always available to -Node.js applications without using `require()`. It can also be -explicitly accessed using `require()`: +Node.js applications without using `require()`. It can also be explicitly +accessed using `require()`: ```js const process = require('process');