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: nodejs#26792
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
dkundel authored and danbev committed Mar 26, 2019
1 parent b51a546 commit 136c805
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 136c805

Please sign in to comment.