dotenv-display

display dotnenv values in runtime

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
dotenv-display
1.0.16 years ago6 years agoMinified + gzip package size for dotenv-display in KB

Readme

dotenv-display
Displays your run-time environment variables based on dotenv

Installation

```bash npm install dotenv-display ````

Usage

In order to display your runtime environemnt variables make sure to call displayEnv after creating your configuration from dotenv. Here is some code smaple: ```bash import {config} from "dotenv"; import as path from "path" import {displayEnv} from "dotenv-display"; `````` ```bash let configPath = path.join(dirname, "./config/.env") let env = config({path: configPath}); displayEnv(env.parsed); ``` The output will include only variables that were defined inside your .env file

Test

````bash npm test ````