UNPKG

env-cmd

Version:

Executes a command using the environment variables in an env file

27 lines (26 loc) 717 B
/** * Gets the environment vars from an env file */ export declare function getEnvFileVars(envFilePath: string): Promise<{ [key: string]: any; }>; /** * Parse out all env vars from a given env file string and return an object */ export declare function parseEnvString(envFileString: string): { [key: string]: string; }; /** * Parse out all env vars from an env file string */ export declare function parseEnvVars(envString: string): { [key: string]: string; }; /** * Strips out comments from env file string */ export declare function stripComments(envString: string): string; /** * Strips out newlines from env file string */ export declare function stripEmptyLines(envString: string): string;