Skip to content

captainblue2013/dotenvR

Repository files navigation

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
        }
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published