npm.io
0.2.3 • Published 2 years ago

dotenvr

Licence
ISC
Version
0.2.3
Deps
1
Size
34 kB
Vulns
0
Weekly
0

dotenvR


Install

npm install dotenvr --save

Usage

var config = require('dotenvr').load(); //默认当前路径 .env 
//var config = require('dotenvr').load('/path/of/your/.env');

Example

.env

APP = demo
A.B.C = 123

var config = require('dotenvr').load(); // also see process.env

{
    APP:'demo',
    A:{
        B:{
            C:123
        }
    }
}

Keywords