0.0.3 • Published 7 years ago

envo v0.0.3

Weekly downloads
12
License
ISC
Repository
github
Last release
7 years ago

Envo

Read environment variables defined in files into process.env.

Installation

npm install envo --save-dev

Usage & Examples

env.json

{
    "API_LOCATION": "http://myapi.tld/api"
}

env.fallbacks.json

{
    "API_LOCATION": "localhost:3000/api"
}

.gitignore

env.json

Some build file

Could be webpack.config.js, or a gulp task, whatever.

require('envo')('env.fallbacks.json', 'env.json')

or

import envo from 'envo'
envo('env.fallbacks.json', 'env.json')