Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 481 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 481 Bytes

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….