🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

dotenv-internal

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-internal

This package immitates dotenv in order to use and maintain internally.

1.2.3
latest
Source
npm
Version published
Weekly downloads
15
650%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 27 Apr 2022

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