env-cmd/dist/expand-envs.d.ts
2025-08-06 00:26:33 -08:00

7 lines
282 B
TypeScript

import type { Environment } from './types.ts';
/**
* expandEnvs Replaces $var and ${var} in args and command with environment variables
* if the environment variable doesn't exist, it leaves it as is.
*/
export declare function expandEnvs(str: string, envs: Environment): string;