@sackrin/env
v0.2.5
Published
Helpers to better control and filter dotenv
Downloads
8
Readme
Env
A simple library designed to use dotenv to load in and filter env files. Useful if you have a applications where you want the ability to control which env vars are parsed.
Install Dependency
npm i --save @sackrin/app
Methods
loadEnv('/path/to/.env')
Use this method to load in the env files.
getEnv(['SOME_KEY', 'SOME_OTHER_KEY])
Use this to determine which vars you are after.