dotvar
v1.0.4
Published
Environment variables from .evn
Downloads
1
Maintainers
Readme
dotvar
Dotvar is a lightweight and no dependecry module that loads all the environment variables from a .env
then add into the procees.env.
Install
npm i dotvar
import dotvar from 'dotvar';
Or installing with yarn add dotvar
Usage
S3_BUCKET="s3_bucket"
SECRET_KEY="secret key"
require('dotvar').evnReader()
console.log(process.env) // Check if working.
.. or using ES6
import dotvar from 'dotvar'
dotvar.read()
Examples
Languages frameworks can use.
- nodejs
- typescript
- react
- react (typescript)
- express
- nestjs
- webpack