Skip to content

or9/env-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

env-lib

Node module for reading .env file in app. For the sake of simplicity, it will expect to find a file named .env in the original directory the process is running from.

.
├── .env
├── index.js
└── log

I.e., if pwd prints /home, read environment properties from /home/.env.

#!/usr/bin/env node
// index.js
"use strict";

require("env-lib");
// now process.env is set based on .env file

// do other stuff here….

About

Node module for reading .env file in app

Resources

License

Stars

Watchers

Forks

Packages

No packages published