Merge pull request #24678 from forivall/dotenv-load-alias

fix(dotenv): add missing "load" alias
This commit is contained in:
Paul van Brenk
2018-04-03 11:02:09 -07:00
committed by GitHub
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -11,6 +11,8 @@ dotenv.config({
encoding: 'utf8'
});
dotenv.load();
const parsed = dotenv.parse("ENVIRONMENT=production\nDEBUG=no\n");
const debug: string = parsed['DEBUG'];
+1
View File
@@ -20,6 +20,7 @@ export function parse(src: string | Buffer): {[name: string]: string};
* Example: 'KEY=value' becomes { parsed: { KEY: 'value' } }
*/
export function config(options?: DotenvOptions): DotenvResult;
export const load: typeof config;
export interface DotenvOptions {
/**