conenv

0.1.4 • Public • Published

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
 

Readme

Keywords

none

Package Sidebar

Install

npm i conenv

Weekly Downloads

2

Version

0.1.4

License

MIT

Last publish

Collaborators

  • ruiming