Skip to content
Merged
Prev Previous commit
Next Next commit
content(learn cli): clarify process global object
  • Loading branch information
AugustinMauroy committed Dec 2, 2024
commit 1584fbc07da0875e646dec3efe9845ac8d3160ee
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ USER_ID=239482 USER_KEY=foobar node app.js

That will pass the user `USER_ID` as **239482** and the `USER_KEY` as **foobar**. This is suitable for testing, however for production, you will probably be configuring some bash scripts to export variables.

> Note: `process` does not require a "require", it's automatically available.
> Note: `process` does not need to be imported, it is a global object in Node.js.

Here is an example that accesses the `USER_ID` and `USER_KEY` environment variables, which we set in above code.

Expand Down
Loading