Load Env
nodejs load env helper
Installation
from GitHub:
npm i https://github.com/dvs-crcr/load_env.git\#v1.0.3 --save
from NPM:
npm i @crcr/load_env
Usage: check envs
const load_env = require('load_env');
const env = load_env([
'HTTP_PORT',
'REDIS_PORT',
'REDIS_URL',
], process.env);
Usage: get env
const http_port = env.get('HTTP_PORT');