Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
motdotla committed Jan 24, 2024
1 parent b5a80e2 commit 0f90cfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -156,7 +156,9 @@ console.log(typeof config, config) // object { BASIC : 'basic' }

### Preload

> Note: Consider using [`dotenvx`](https://github.com/dotenvx/dotenvx) instead of preloading. I am now doing (and recommending) so. It serves the same purpose (you do not need to require and load dotenv) but adds much better debugging. It also works for ANY framework, environment, or platform. – [motdotla](https://github.com/motdotla)
> Note: Consider using [`dotenvx`](https://github.com/dotenvx/dotenvx) instead of preloading. I am now doing (and recommending) so.
>
> It serves the same purpose (you do not need to require and load dotenv), adds better debugging, and works with ANY language, framework, or platform. – [motdotla](https://github.com/motdotla)
You can use the `--require` (`-r`) [command line option](https://nodejs.org/api/cli.html#-r---require-module) to preload dotenv. By doing this, you do not need to require and load dotenv in your application code.

Expand Down

0 comments on commit 0f90cfe

Please sign in to comment.