1.0.4 • Published 1 month ago

@ti-platform/aide-env v1.0.4

Weekly downloads
-
License
-
Repository
-
Last release
1 month ago

@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 of process.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

ParameterType
filesOrderstring[]

Returns

void

Source

index.ts:10

1.0.4

1 month ago

1.0.3

1 month ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.1.4

10 months ago

0.1.3

11 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago