Skip to main content

env package

Functions​

FunctionDescription
createAsyncEnvironment()Returns a new asynchronized Environment.
createAsyncLoaderReducers(loader)Returns the default reducers which load environment variables asynchronously using the specified loader.
createNodeCJSEnvironment(options)Returns a new Environment which loads environment variables using Node.js's require() function.
createNodeESMEnvironment(options)Returns a new Environment which loads environment variables using ECMAScript module (ESM) import() function.
createSyncEnvironment()Returns a new synchronized Environment.
createSyncLoaderReducers(loader)Returns the default reducers which load environment variables synchronously using the specified loader.

Interfaces​

InterfaceDescription
EnvironmentContains environment context and can be used to fetch environment variables.
LoaderLoads environment variables.
NodeEnvironmentOptionsOptions for creating a Node.js environment.
PathsPath patterns of environment files.
ReducerDescribes a step in the variables overriding chain.
ReducerListA collection of Reducer.

Variables​

VariableDescription
env