1.0.0 • Published 4 years ago

cube-dotenv v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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' })