Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aligned docs with proposed feature in app repo Re #6 #7

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions docs/scripting/javascript-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,28 @@ Get the response data
let data = res.getBody();
```

## Node process environment
Bruno allows you to get Node process environment variables on the fly.

### `getProcessEnv`
Get the Node process environment variable. This allows secret token usage without committing secrets to version control.

**Example:**
```javascript
let secret_token = bru.getProcessEnv("secret_access_token");
```
## Environments
Bruno allows you to get and set env variables on the fly.
Bruno allows you to get and set Bruno environment variables on the fly.

### `getEnvVar`
Get the environment variable
Get the Bruno environment variable

**Example:**
```javascript
let token = bru.getEnvVar("access_token");
```
### `setEnvVar`
Set the environment variable
Set the Bruno environment variable

**Example:**
```javascript
Expand Down