dotenv-internal

1.2.3 • Public • Published

Usage


Import config as early as possible in the application.

// Will find .env file from project root by default.
require('dotenv-internal')();

// Pass options object to override default option.
const options = {
   rootpath: 'path/to/project/root',
   filename: '.env',
   encoding: 'utf8',
   override: false,
};

require('dotenv-internal')a(options);

For further documentation please refer to the original dotenv.

Readme

Keywords

none

Package Sidebar

Install

npm i dotenv-internal

Weekly Downloads

18

Version

1.2.3

License

ISC

Unpacked Size

4.56 kB

Total Files

3

Last publish

Collaborators

  • kevinmnm