Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
easymikey committed Dec 26, 2024
1 parent 8c59694 commit 28a2661
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/v7/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,17 @@ The [yaml](https://www.npmjs.com/package/yaml) package.
```js
console.log(YAML.parse('foo: bar').foo)
```


## loadDotenv

Read env files and collects it into environment variables.

```js
const env = loadDotenv(env1, env2)
console.log((await $({ env })`echo $FOO`).stdout)
---
const env = loadDotenv(env1)
$.env = env
console.log((await $`echo $FOO`).stdout)
```

0 comments on commit 28a2661

Please sign in to comment.