(key: string, public_prefix: string, private_prefix: string): boolean key
type
stringpublic_prefix
type
stringprivate_prefix
type
stringreturns
boolean 5 declarations
(key: string, public_prefix: string, private_prefix: string): boolean keystringpublic_prefixstringprivate_prefixstringboolean (key: string, public_prefix: string, private_prefix: string): boolean keystringpublic_prefixstringprivate_prefixstringboolean (dev: boolean, visibility: "public" | "private", public_prefix: string, private_prefix: string, env_dir?: string | undefined, env_files?: string[], ambient_env?: ProcessEnv): Record<...> devbooleanvisibility"public" | "private"public_prefixstringprivate_prefixstringenv_dir?string | undefinedenv_filesstring[]['.env', '.env.' + (dev ? 'development' : 'production')]ambient_envProcessEnvprocess.envRecord<string, string> (key: string, paths?: string[]): string | undefined Loads a single env value without merging it into process.env.
By default searches process.env, then a local .env if one exists, then ../.env if it exists.
Empty strings are semantically the same as undefined for more ergonomic fallbacks.
keystringpathsstring[]['.env', '../.env']string | undefined (envs: Record<string, string | undefined>[], visibility: "public" | "private", public_prefix: string, private_prefix: string): Record<string, string> envsRecord<string, string | undefined>[]visibility"public" | "private"public_prefixstringprivate_prefixstringRecord<string, string>