@anzerr/dotenv

util to load env values into an app/service

Usage no npm install needed!

<script type="module">
  import anzerrDotenv from 'https://cdn.skypack.dev/@anzerr/dotenv';
</script>

README

Intro

dotenv loads a formated .env file into process.env

Install

npm install --save git+https://git@github.com/anzerr/dotenv.git
npm install --save @anzerr/dotenv

Example

.env files

APP_PORT=3005
require('@anzerr/dotenv').config();
console.log(process.env.APP_PORT); // 3005