2.5.0 • Published 7 years ago

envc v2.5.0

Weekly downloads
355
License
MIT
Repository
github
Last release
7 years ago

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}.{NODE_ENV}
  • {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

2.5.0

7 years ago

2.4.1

9 years ago

2.4.0

9 years ago

2.3.2

9 years ago

2.3.1

9 years ago

2.3.0

9 years ago

2.2.0

9 years ago

2.1.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

2.0.0-alpha1

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago