0.1.4 • Published 7 years ago

conenv v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

Get env variables from config file

Npm License

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