botbook/node_modules/@pnpm/config.env-replace/dist/env-replace.docs.mdx
Rodrigo Rodriguez 6ae15fe3e5 Updated.
2024-09-04 13:13:15 -03:00

18 lines
313 B
Text

---
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)
```