1.1.0 • Published 6 years ago

env-autoload v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

.env autoloader

npm version node version support Build Status via Travis CI Coverage Status NPM downloads

Why?

Because who wants bootstrap files in their boilerplate/templates? This is really just a code-smell implementation fix for using the wonderful dotenv library.

Usage

.env

TEST='foo bar baz'

index.js (server)

import env from 'env-autoload'     // require('env-autoload') works fine too

process.env.TEST === 'foo bar baz' // true
env.TEST === 'foo bar baz'         // also true (convenience export)

Changelog

  • 1.1.0 - added process.env as convenience export (as well as to pass linting tests)