envc

Loads environment variables from dotenv files

  • envc

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
envc
822.5.07 years ago10 years agoMinified + gzip package size for envc in KB

Readme

envc Build Status NPM version NPM downloads LICENSE
Loads environment variables from .env files.

Inspired by dotenv by Brandon Keepers.

Usage

// `options` are optional
var env = require('envc')(options);

Options:

Inheritance

envc will try to load:
  • {name}
  • {name}.{NODEENV}
  • {name}.local

Interpolation

URL_HOST="vesln.com"
URL_PATH="index"
URL_FULL="http://${URL_HOST}/${URL_PATH}"
DOCKER_SERVICE=$(boot2docker ip):11211 # works on node 0.12+

Installation

npm install envc

License

MIT