Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. See [standa

## [Unreleased](https://github.com/motdotla/dotenv/compare/v17.4.0...master)

### Changed

* Text change `injecting` to `injected` ([#1005](https://github.com/motdotla/dotenv/pull/1005))

## [17.4.0](https://github.com/motdotla/dotenv/compare/v17.3.1...v17.4.0) (2026-04-01)

### Added
Expand Down
8 changes: 4 additions & 4 deletions README-es.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ console.log(process.env) // elimínalo después de confirmar que funciona
```
```sh
$ node index.js
injecting env (14) from .env
injected env (14) from .env
```

Eso es todo. `process.env` ahora tiene las claves y valores que definiste en tu archivo `.env`.
Expand Down Expand Up @@ -198,7 +198,7 @@ console.log('DATABASE_URL', process.env.DATABASE_URL)
```
```sh
$ dotenvx run --debug -- node index.js
injecting env (2) from .env · dotenvx@1.59.1
injected env (2) from .env · dotenvx@1.59.1
DATABASE_URL postgres://username@localhost/my_database
```

Expand All @@ -219,7 +219,7 @@ console.log('DATABASE_URL', process.env.DATABASE_URL)
```
```sh
$ dotenvx run --debug -- node index.js
injecting env (1) from .env · dotenvx@1.59.1
injected env (1) from .env · dotenvx@1.59.1
DATABASE_URL postgres://yourusername@localhost/my_database
```

Expand All @@ -235,7 +235,7 @@ $ dotenvx set HELLO Production -f .env.production
$ echo "console.log('Hello ' + process.env.HELLO)" > index.js

$ DOTENV_PRIVATE_KEY_PRODUCTION="<.env.production private key>" dotenvx run -- node index.js
injecting env (2) from .env.production · dotenvx@1.59.1
injected env (2) from .env.production · dotenvx@1.59.1
Hello Production
```

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ console.log(process.env) // remove this after you've confirmed it is working
```
```sh
$ node index.js
injecting env (14) from .env
injected env (14) from .env
```

That's it. `process.env` now has the keys and values you defined in your `.env` file.
Expand Down Expand Up @@ -198,7 +198,7 @@ console.log('DATABASE_URL', process.env.DATABASE_URL)
```
```sh
$ dotenvx run --debug -- node index.js
injecting env (2) from .env · dotenvx@1.59.1
injected env (2) from .env · dotenvx@1.59.1
DATABASE_URL postgres://username@localhost/my_database
```

Expand All @@ -219,7 +219,7 @@ console.log('DATABASE_URL', process.env.DATABASE_URL)
```
```sh
$ dotenvx run --debug -- node index.js
injecting env (1) from .env · dotenvx@1.59.1
injected env (1) from .env · dotenvx@1.59.1
DATABASE_URL postgres://yourusername@localhost/my_database
```

Expand All @@ -235,7 +235,7 @@ $ dotenvx set HELLO Production -f .env.production
$ echo "console.log('Hello ' + process.env.HELLO)" > index.js

$ DOTENV_PRIVATE_KEY_PRODUCTION="<.env.production private key>" dotenvx run -- node index.js
injecting env (2) from .env.production · dotenvx@1.59.1
injected env (2) from .env.production · dotenvx@1.59.1
Hello Production
```

Expand Down
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ function configDotenv (options) {
}
}

_log(`injecting env (${keysCount}) from ${shortPaths.join(',')} ${dim(`// tip: ${_getRandomTip()}`)}`)
_log(`injected env (${keysCount}) from ${shortPaths.join(',')} ${dim(`// tip: ${_getRandomTip()}`)}`)
}

if (lastError) {
Expand Down
8 changes: 4 additions & 4 deletions skills/dotenv/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ console.log('DATABASE_URL', process.env.DATABASE_URL)
```
```sh
$ dotenvx run --debug -- node index.js
[dotenvx@0.14.1] injecting env (2) from .env
[dotenvx@0.14.1] injected env (2) from .env
DATABASE_URL postgres://username@localhost/my_database
```

Expand All @@ -201,7 +201,7 @@ console.log('DATABASE_URL', process.env.DATABASE_URL)
```
```sh
$ dotenvx run --debug -- node index.js
[dotenvx@0.14.1] injecting env (1) from .env
[dotenvx@0.14.1] injected env (1) from .env
DATABASE_URL postgres://yourusername@localhost/my_database
```

Expand All @@ -217,7 +217,7 @@ $ dotenvx set HELLO Production -f .env.production
$ echo "console.log('Hello ' + process.env.HELLO)" > index.js

$ DOTENV_PRIVATE_KEY_PRODUCTION="<.env.production private key>" dotenvx run -- node index.js
[dotenvx] injecting env (2) from .env.production
[dotenvx] injected env (2) from .env.production
Hello Production
```

Expand Down Expand Up @@ -645,7 +645,7 @@ HELLO=World

```sh
$ node index.js
[dotenv@17.0.0] injecting env (1) from .env
[dotenv@17.0.0] injected env (1) from .env
Hello World
```

Expand Down
8 changes: 4 additions & 4 deletions skills/dotenvx/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $ echo "HELLO=production" > .env.production
$ echo "console.log('Hello ' + process.env.HELLO)" > index.js

$ dotenvx run -f .env.production -- node index.js
[dotenvx@1.X.X] injecting env (1) from .env.production
[dotenvx@1.X.X] injected env (1) from .env.production
Hello production
```

Expand All @@ -88,7 +88,7 @@ $ echo "HELLO=local" > .env.local
$ echo "HELLO=World" > .env

$ dotenvx run -f .env.local -f .env -- node index.js
[dotenvx@1.X.X] injecting env (1) from .env.local,.env
[dotenvx@1.X.X] injected env (1) from .env.local,.env
Hello local
```

Expand Down Expand Up @@ -130,7 +130,7 @@ Decrypt at runtime by setting the private key (found in `.env.keys`):

```sh
$ DOTENV_PRIVATE_KEY="<key from .env.keys>" dotenvx run -- node index.js
[dotenvx@1.X.X] injecting env (2) from .env
[dotenvx@1.X.X] injected env (2) from .env
Hello World
```

Expand All @@ -148,7 +148,7 @@ Combine multiple encrypted files:

```sh
$ DOTENV_PRIVATE_KEY="<key>" DOTENV_PRIVATE_KEY_PRODUCTION="<key>" dotenvx run -- node index.js
[dotenvx@1.X.X] injecting env (3) from .env, .env.production
[dotenvx@1.X.X] injected env (3) from .env, .env.production
```

**Commit the encrypted `.env` file. Never commit `.env.keys`.**
Expand Down
Loading