
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
npm install -g envi
☁ bin [master] ⚡ envi
Created your conf directory with env.js and env.json!
Install latest version of nconf? y or n [y]
You need configuration vars that are enviromentally specific. You also want them to use nconf goodness (https://github.com/flatiron/nconf). You want the environment to default to being development if process.env.NODE_ENV is undefined.
Running envi will give you a conf directory that looks like this:
conf/env.js
conf/env.json
So you can do this in your code:
env = require('./conf/env');
console.log(env.hello); //outputs I'm dev by default, otherwise reads process.env.NODE_ENV
Where env.json looks like:
{
"development":{
"hello": "I'm dev"
}
, "test": {
"hello": "I'm test"
}
, "staging": {
"hello": "I'm staging"
}
, "production": {
"hello": "I'm production"
}
}
Or, leverage nconf coolness:
node myprogram.js --hello "I've been overridden"
FAQs
an nconf wrapper around conf/env.js & env.json
We found that envi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.