Dotvar is a lightweight and no dependecry module that loads all the environment variables from a .env
then add into the procees.env.
npm i dotvar
import dotvar from 'dotvar';
Or installing with yarn add dotvar
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()
Languages frameworks can use.
- nodejs
- typescript
- react
- react (typescript)
- express
- nestjs
- webpack
Project | Status | Description |
---|---|---|
dotvar | Environment variables from .evn |