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

dotenv-esbuild

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-esbuild

A simple esbuild plugin to support dotenv.

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
87
-36.96%
Maintainers
1
Weekly downloads
 
Created
Source

dotenv-esbuild

ESBuild plugin that use dotenv to setup environment variables

Installation

npm install dotenv-esbuild --save-dev

Usage

import esbuild from "esbuild"
import Dotenv from 'dotenv-esbuild';

esbuild.build({
  ...
  plugins: [ new Dotenv()],
})

Properties

Use the following properties to configure your plugin.

  • path - The path to your environment variables (default: './.env').

Example:

  plugins: [
    new Dotenv({
      path: '../path_to/.env'
    })
  ]

Keywords

dotenv

FAQs

Package last updated on 15 Feb 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