2.0.4 • Published 6 years ago

local-env-var v2.0.4

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
6 years ago

Environment Variable Loader

Loading .env in to process.env

Codacy Badge Bless npm

Intro

This program strives to be a minimal way of loading variables from a configuration file (.env), and attaches them to process.env.

This works similarly to running your program with heroku local running dotenv.parse().

Prerequisites

All you need for this is a file named .env. Its contents should look like this:

CONTENTFUL_KEY=somesecretkey
CONTENTFUL_SPACE=somespaceurl
SECRET_API_KEY_THAT_WONT_GET_POSTED_TO_GIT=whoops

Usage

Simply load the library!

// ES6 imports
import 'local-env-var';
// Node module require
require('local-env-var');
2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.5

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago