env-cmd/dist/src/parse-env-file.d.ts
Todd Bluhm f5e2e33939
Updated typescript-eslint packages and fixed lint errors
- Updated commander
- Brought coverage back up to 100%
- Updated tsconfig to adhere to linter parser update
2019-08-28 03:13:50 -05:00

27 lines
717 B
TypeScript

/**
* 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;