envx

Environment variables without the hassle

Zero-setup environment loader for Node.js applications

Quick Start

# Works with ANY existing Node.js project
npx @href00/envx your-app.js --env=dev

# With auto-reload
npx @href00/envx-nodemon server.js --env=staging

🎪 Zero Setup

Works with any existing Node.js project instantly. No code modifications required.

🔄 Environment Overlays

Base .env + environment-specific files (.env.dev, .env.staging) with smart merging.

🚀 Nodemon Integration

Built-in auto-reload with envx-nodemon for seamless development workflow.

🏗️ Legacy Friendly

Perfect for old projects that can't be refactored. No require() statements needed.

View on NPM GitHub Repository

Why envx?

Other environment tools require you to modify your code and install dependencies in every project. envx is different:

❌ Traditional Approach:

// Requires code modification
require('dotenv').config();
const app = require('./app');

✅ The envx Way:

// No code changes needed!
npx @href00/envx app.js --env=dev

Perfect for:

Learn More

Visit our GitHub repository for full documentation, examples, and contributing guidelines.