dotenv-expand (5.1.0)

Published 2026-02-24 13:55:42 +00:00 by atheaadmin

Installation

registry=
npm install dotenv-expand@5.1.0
"dotenv-expand": "5.1.0"

About this package

dotenv-expand

dotenv-expand

Dotenv-expand adds variable expansion on top of dotenv. If you find yourself needing to expand environment variables already existing on your machine, then dotenv-expand is your tool.

BuildStatus NPM version js-standard-style

Install

npm install dotenv --save
npm install dotenv-expand --save

Usage

As early as possible in your application, require dotenv and dotenv-expand, and wrap dotenv-expand around dotenv.

var dotenv = require('dotenv')
var dotenvExpand = require('dotenv-expand')

var myEnv = dotenv.config()
dotenvExpand(myEnv)

See test/.env for examples of variable expansion in your .env file.

Dependencies

Development Dependencies

ID Version
dotenv ^4.0.0
lab ^13.0.1
should ^11.2.1
standard ^9.0.2

Keywords

dotenv expand variables
Details
npm
2026-02-24 13:55:42 +00:00
1
motdotla
BSD-2-Clause
latest
12 KiB
Assets (1)
Versions (1) View all
5.1.0 2026-02-24