env-cmd/dist/expand-envs.d.ts

6 lines
229 B
TypeScript

/**
* expandEnvs Replaces $var in args and command with environment variables
* the environment variable doesn't exist, it leaves it as is.
*/
export declare function expandEnvs(str: string, envs: Record<string, any>): string;