pointenv
v1.3.0
Published
PointEnv is a node-library to be Loads environment variables from .env file
Downloads
2
Maintainers
Readme
pointenv
Install
# Install locally (recomended)
npm install pointenv --save
Or installing with yarn? yarn add dotenv
Create a .env
file in the root of your project:
NAME=Pointenv
VERSION=1.2.1
LICENSE=MIT
AUTHOR=Shahzada Modassir
DEBUG=true
GIT_REPOGITORY="git+https://github.com/nodeflict/pointenv.git"
As early as possible in your application, import and configure dotenv:
require("pointenv").load();
console.log(process.env);
That's it. process.env
now has the keys and values you defined in your .env
file:
require("pointenv").load();
console.log(process.env.GIT_REPOGITORY);
License
Author
Shahzada Modassir