@liplum/env
Version:
Reading and parsing environment variables from "process.env"
18 lines (17 loc) • 581 B
TypeScript
import { EnvStore } from "./model.js";
export declare const ENV_DEVELOPMENT = "development";
export declare const ENV_PRODUCTION = "production";
export declare const ENV_TEST = "test";
export declare const ENV_STAGING = "staging";
export declare class NodeEnv {
readonly key = "NODE_ENV";
readonly store?: EnvStore;
constructor(store?: EnvStore);
from: (store: EnvStore) => NodeEnv;
getOrNull: () => string | undefined;
get: () => string;
get development(): boolean;
get production(): boolean;
get test(): boolean;
get staging(): boolean;
}