Packages

dotenv

18.0.10 · 9 Nov 2026BSD-2-Clause284.8M / weekRepositoryHomepagenpmAtom feed

Your version

5.0.0

major29 Jan 2018Where it was published

5.0.1 is the newest release of 5.x.

In short

3 breaking3 new1 changed

  • Breaking

    Breaking: default path is now path.resolve(process.cwd(), '.env')

  • Breaking

    Breaking: does not write over keys already in process.env if the key has a falsy value

  • Breaking

    Testing against Node v7

Release note

Added

  • Testing against Node v8 and v9

  • Documentation on trim behavior of values

  • Documentation on how to use with import

Changed

  • Breaking

    Breaking: default path is now path.resolve(process.cwd(), '.env')

  • Breaking

    Breaking: does not write over keys already in process.env if the key has a falsy value

  • Using const and let instead of var

Removed

  • Breaking

    Testing against Node v7

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.