Skip to content
Browse files

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.

PR-URL: #26792
Reviewed-By: James M Snell <>
Reviewed-By: Myles Borins <>
Reviewed-By: Ruben Bridgewater <>
  • Loading branch information...
dkundel authored and targos committed Mar 20, 2019
1 parent 5f3b850 commit 14cc4f220c386c14fa5600e7f1556f19f284ed5f
Showing with 6 additions and 1 deletion.
  1. +6 −1 doc/api/
@@ -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()`. It can also be explicitly
accessed using `require()`:

const process = require('process');

## Process Events

0 comments on commit 14cc4f2

Please sign in to comment.
You can’t perform that action at this time.