Socket
Book a DemoInstallSign in
Socket

dotenv-pre

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-pre

Pre-configured `dotenv` module

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Pre-configured dotenv module

NPM version

Installation

npm i dotenv-pre -S

Usage

  • Use .env[.<name>] file(s) for default and .env[.<name>].local for local configurations.
  • Add .env[.<name>].local file(s) to .gitignore

Example without name

import 'dotenv-pre/config';

// ...

Example with name

import { config } from 'dotenv-pre';

config({
  name: 'api',
});

// ...

Files order

  • .env[.<name>].local (e.g. .env.api.local)
  • .env[.<name>] (e.g. .env.api)
  • .env.local
  • .env

License

MIT

FAQs

Package last updated on 13 Oct 2023

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