asm-env
Version:
Package for load enviroment variables from .env.json file or AWS Secret manager
23 lines (22 loc) • 454 B
TypeScript
export declare enum EnvTypes {
dotenv = "dotenv",
asm = "asm"
}
interface Options {
path: string;
client?: any;
secretName?: string;
}
interface EnvObj {
env: string;
type: string;
}
export declare class AsmEnv {
ENV: EnvObj;
constructor(env: string, type: EnvTypes);
load(options: Options): Promise<void>;
private dotenvJSON;
private putEnv;
private getSecretValue;
}
export {};