mirror of
https://github.com/toddbluhm/env-cmd.git
synced 2025-12-08 18:23:33 +00:00
22 lines
710 B
TypeScript
22 lines
710 B
TypeScript
import type { Environment } from './types.ts';
|
|
/**
|
|
* Gets the environment vars from an env file
|
|
*/
|
|
export declare function getEnvFileVars(envFilePath: string): Promise<Environment>;
|
|
/**
|
|
* Parse out all env vars from a given env file string and return an object
|
|
*/
|
|
export declare function parseEnvString(envFileString: string): Environment;
|
|
/**
|
|
* Parse out all env vars from an env file string
|
|
*/
|
|
export declare function parseEnvVars(envString: string): Environment;
|
|
/**
|
|
* 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;
|