New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cube-dotenv

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cube-dotenv

Overrides your main .env with .env.local

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

dotenv

FAQs

Package last updated on 13 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts