Skip to content

Commit

Permalink
doc: add option to require 'process' to api docs
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
dkundel authored and targos committed Mar 27, 2019
1 parent 5f3b850 commit 14cc4f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`:

```js
const process = require('process');
```

## Process Events

Expand Down

0 comments on commit 14cc4f2

Please sign in to comment.