UNPKG

hataraku

Version:

An autonomous coding agent for building AI-powered development tools. The name "Hataraku" (働く) means "to work" in Japanese.

22 lines (21 loc) 823 B
/** * Utility for environment variable interpolation in configuration strings * Supports ${VAR_NAME} and ${VAR_NAME:-default} syntax */ /** * Interpolate environment variables in a string * Replaces ${VAR_NAME} with the value of the environment variable * Supports default values with ${VAR_NAME:-default} syntax * * @param input String with environment variable references * @returns String with environment variables interpolated */ export declare function interpolateEnvVars(input: string): string; /** * Interpolate environment variables in an object recursively * Processes all string values in the object * * @param obj Object with potential environment variable references * @returns Object with environment variables interpolated */ export declare function interpolateEnvVarsInObject<T>(obj: T): T;