dotenv-autoload

0.1.3 • Public • Published

dotenv-autoload npm version Build Status

Autoload dotenv through recursive finding.

Why?

  • Because I use dotenv a lot;
  • And because I have 2 configs.
- require('dotenv').load({ path: __dirname + '/../../.env' });
+ require('dotenv-autoload');

Nothing is bad about it. It just looks dull.

Getting Started

npm i dotenv dotenv-autoload --save-dev

Note: dotenv is a required dependency.

Usage

require('dotenv-autoload');

That's all you need to get it running.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.31latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.31
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i dotenv-autoload

Weekly Downloads

0

Version

0.1.3

License

ISC

Last publish

Collaborators

  • srph