env-cmd/dist/parse-env-file.d.ts
Todd Bluhm bbc4b78ad2
Convert over to using ts-standard
- Removed all the various eslint dependencies and added ts-standard
- Updated Readme file with some minor changes
- Updated dist folder to have one level again
2019-08-29 23:39:32 -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;