dotenvr
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i dotenvr

Weekly Downloads

83

Version

0.2.3

License

ISC

Unpacked Size

34.9 kB

Total Files

9

Last publish

Collaborators

  • lanhao