Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dotenv-expand

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-expand - npm Package Versions

23

12.0.1

Diff

motdotla
published 12.0.0 •

Changelog

Source

12.0.0 (2024-11-16)

Added

  • 🎉 support alternate value expansion (see usage) (#131)

Changed

NOTE: I recommend dotenvx over dotenv-expand when you are ready. I'm putting all my effort there for a unified standard .env implementation that works everywhere and matches bash, docker-compose, and more. In some cases it slightly improves on them - leading to more reliability for your secrets and config.

  • ⚠️ BREAKING: do NOT attempt expansion of process.env (#131)

This has always been dangerous (unexpected side effects) and is now removed. process.env should not hold values you want to expand. If for some reason you need equivalent abilities, use dotenvx. You can ship an encrypted .env file with your code - allowing safe expansion at runtime - rather than relying on trying to expand pre-existing process.env values that could for good reason have a dollar sign in them (example a password).

motdotla
published 11.0.7 •

motdotla
published 11.0.6 •

Changelog

Source

11.0.6 (2024-02-17)

Changed

  • Fix .nyc_output in .npmignore
motdotla
published 11.0.5 •

Changelog

Source

11.0.5 (2024-02-17)

Changed

  • 🐞 fix recursive expansion when expansion key is sourced from process.env (#121)
motdotla
published 11.0.4 •

Changelog

Source

11.0.4 (2024-02-15)

Changed

  • 🐞 fix recursive expansion when expansion keys in reverse order (#118)
motdotla
published 11.0.3 •

Changelog

Source

11.0.3 (2024-02-11)

Changed

  • 🐞 bug fix when processEnv set to process.env rather than empty object (also test fixes which hid the bug) (#113)
motdotla
published 11.0.2 •

Changelog

Source

11.0.2 (2024-02-10)

Changed

motdotla
published 11.0.1 •

Changelog

Source

11.0.1 (2024-02-10)

Added

  • Added funding link in package.json
motdotla
published 11.0.0 •

Changelog

Source

11.0.0 (2024-02-10)

Added

  • Add typings for import dotenv-expand/config (#99)
  • Support expansion of dot in env variable names like POSTGRESQL.BASE.USER (#93)
  • Add processEnv option (#105)
  • Add support for default format of ${VAR-default} (#109)

Changed

  • Do not expand prior process.env environment variables. NOTE: make sure to see updated README regarding dotenv.config({ processEnv: {} }) (#104)
  • 🐞 handle $var1$var2 (#103, #104)
  • 🐞 fix fatal recursive error when variable defines value with same variable VAR=$VAR #98

Removed

  • Remove ignoreProcessEnv option (use processEnv option going forward)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc