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

/cube-dotenv/

    Package Sidebar

    Install

    npm i cube-dotenv

    Weekly Downloads

    5

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.62 kB

    Total Files

    8

    Last publish

    Collaborators

    • f7z