dotenv
18.0.10 · 9 Nov 2026BSD-2-Clause284.8M / weekRepositoryHomepagenpmAtom feed
5.0.1 is the newest release of 5.x.
In short
3 breaking3 new1 changed
- Breaking
Breaking: default
pathis nowpath.resolve(process.cwd(), '.env') - Breaking
Breaking: does not write over keys already in
process.envif 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
pathis nowpath.resolve(process.cwd(), '.env') - Breaking
Breaking: does not write over keys already in
process.envif the key has a falsy value Using
constandletinstead ofvar
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.