botbook/node_modules/@pnpm/config.env-replace/env-replace.docs.mdx

19 lines
313 B
Text
Raw Normal View History

2024-09-04 13:13:15 -03:00
---
labels: ['configuration']
description: 'A function for repacing env variables in configuration settings'
---
API:
```ts
function envReplace(settingValue: string, env: NodeJS.ProcessEnv): string;
```
Usage:
```ts
import { envReplace } from '@pnpm/config.env-replace'
envReplace('${foo}', process.env)
```