dotenv-display
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i dotenv-display

Weekly Downloads

1,238

Version

1.0.1

License

none

Unpacked Size

29.6 kB

Total Files

24

Last publish

Collaborators

  • odedl