1.0.1 • Published 6 years ago

dotenv-display v1.0.1

Weekly downloads
1,148
License
-
Repository
github
Last release
6 years ago

dotenv-display

Displays your run-time environment variables based on dotenv

Installation

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:

import {config} from "dotenv";
import * as path from "path"
import {displayEnv} from "dotenv-display";
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

npm test
1.0.1

6 years ago

1.0.0

6 years ago