@ampapps/pdrc-env

1.0.2 • Public • Published

PDRC-ENV

Walks up and loads first .env it finds.

I did this so that I didn't have separate, redundant .env files in every project. Like the eslint and prettier config files, I wanted to keep one env in the root PDRC directory for local development.

All you have to do to get this behavior is to include:

require('@ampapps/pdrc-env');

This should only do anything locally. On heroku config-vars are provided by the app, but even if they do actually create a config file, it shouldn't matter, this will just overwrite the process.env object.

Readme

Keywords

none

Package Sidebar

Install

npm i @ampapps/pdrc-env

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

29.3 kB

Total Files

8

Last publish

Collaborators

  • blindlee
  • kmonagle