Skip to content

xkid1/dotvar

Repository files navigation

dotvar

JavaScript Node>js dotenv

Create Release publish LICENSE

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

Status

Project Status Description
dotvar dotvar-status Environment variables from .evn