@ti-platform/aide-env
v1.0.8
Published
This package provides enhancement towards loading environment variables from `.env` files but in a hierarchical approach. It will load in the following order by default:
Downloads
81
Readme
@ti-platform/aide-env
This package provides enhancement towards loading environment variables from .env
files but in a hierarchical
approach. It will load in the following order by default:
.env
.env.{NODE_ENV}
, where{NODE_ENV}
is the value ofprocess.env.NODE_ENV
.env.local
You can of course configure it to change the order and pattern that best fit your style.
Contents
API Docs
Functions
loadEnv()
loadEnv(
filesOrder
):void
Load the environment variables.
Parameters
| Parameter | Type |
| ------------ | ----------- |
| filesOrder
| string
[] |
Returns
void
Defined in
index.ts:10