Skip to content

Commit ce9b98f

Browse files
committed
adjust quickstart
1 parent d3a9065 commit ce9b98f

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

README-es.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ console.log(process.env) // remove this after you've confirmed it is working
3434

3535
That's it. `process.env` now has the keys and values you defined in your `.env` file:
3636

37+
```sh
38+
$ node index.js
39+
◇ injecting env (14) from .env
40+
```
41+
3742
 
3843

3944
## Advanced

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,19 @@ SECRET_KEY="YOURSECRETKEYGOESHERE"
2929
And as early as possible in your application, import and configure dotenv:
3030

3131
```javascript
32+
// index.js
3233
require('dotenv').config() // or import 'dotenv/config' if you're using ES6
3334
...
3435
console.log(process.env) // remove this after you've confirmed it is working
3536
```
3637

3738
That's it. `process.env` now has the keys and values you defined in your `.env` file:
3839

40+
```sh
41+
$ node index.js
42+
◇ injecting env (14) from .env
43+
```
44+
3945
 
4046

4147
## Advanced

0 commit comments

Comments
 (0)