0.1.4 • Published 7 years ago
conenv v0.1.4
Get env variables from config file
Attention! Please not use this module untile it is stable
Install
yarn
yarn add conenv -S
npm
npm install conenv -S
Example
const conenv = require('conenv')
conenv({
PORT: 3306,
PASS: 'ENV:DB_PASS',
NAME: 'ENV:DB_NAME'
}))
// PASS And NAME will be replaced with the value of process.env.DB_PASS and process.env.DB_NAME