Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

cube-dotenv

1.0.0 • Public • Published

cube-dotenv

A simple module on top of dotenv to let you override your main .env with a .env.local.

For more detailed env parsing rules, please refer to the documentation of dotenv.

This extension also use dotenv-expand for variable expansion.

Installation

yarn add cube-dotenv

Usage

As early as possible in your application, require and configure cube-dotenv:

import dotenv from 'cube-dotenv'
 
dotenv.config()
 
// You may want to override the default path
dotenv.config({ path: '.env.demo' })

Install

npm i cube-dotenv

DownloadsWeekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.62 kB

Total Files

8

Last publish

Collaborators

  • avatar