Skip to content

Latest commit

 

History

History

dotenv-nodejs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

examples/dotenv-nodejs

An example of using dotenv with a simple nodejs script.

USAGE

npm install
node index.js

RECREATE

To recreate this:

npm install dotenv --save

Create index.js file

require('dotenv').config()

console.log(process.env)

Add .env file

KEY=value