npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

envv-flow

v1.0.1

Published

A simple package to manage and switch between environment files.

Readme

🌊 Envv Flow - NPM version NPM downloads

Because who needs hardcoded .env files?

Welcome to Envv Flow, the tool that lets you swap out environment files as easily as changing your socks (well... almost). No more manual copy-pasting or git mishaps—just smooth sailing between local, staging, and production environments.


🚨 The Problem

You’ve got multiple environments—local, staging, production—and each one has its own .env file.

But your app keeps getting confused:

  • One minute it’s connected to your local database...
  • The next, it’s wreaking havoc in production. 😱

Enter Envv Flow — your new favorite way to manage and switch .env files effortlessly.


✅ The Solution

Envv Flow makes it easy to manage multiple .env files across environments.

When you run it, it simply takes the desired environment file—like .env.local, .env.stage, or .env.production—and copies its contents into your main .env file.

That’s it.

No more renaming files, no more manual copy-pasting—just a clean, consistent .env file ready for whatever environment you're working in. Just clean, controlled environment switching.


✨ Key Features

  • 🔁 Environment Magic: Switch between .env.local, .env.stg, .env.prod, or any custom .env file with a single command.
  • 🧘 Zero Fuss: No more manual renaming or copy-pasting.
  • ⚙️ Customizable: Define your own mappings in a simple config.json file.
  • 📦 Easy to Use: Works with any Node.js project. Just install it as a dev dependency.

📦 Installation

Install Envv Flow as a development dependency:

npm install --save-dev envv-flow

Perfect — here's the updated 🛠️ Configuration section incorporating the new env-flow-init command, and guiding users through the rest.


🛠️ Configuration

To get started, just run:

npx env-flow-init

This will automatically create a config.json file in the root of your project with the following default content:

{
  "local": ".env.local",
  "stg": ".env.stage",
  "prod": ".env.production"
}

This file maps environment names to their corresponding .env files.

💡 You can customize this mapping however you like. Want to use .env.dev instead of .env.local? No problem—just update the values in config.json.

For example:

{
  "dev": ".env.dev",
  "qa": ".env.qa",
  "prod": ".env.prod"
}

Env Flow will use this mapping whenever you run a switch command.


Thanks! Here's the updated Usage section reflecting your new command structure:


🚀 Usage

After setting up your config.json (using npx env-flow-init), you’re ready to flow through environments like a breeze. 🌬️

🔄 Switch Environments

npx env-flow switch <env-name>

Example:

npx env-flow switch local

This copies the contents of .env.local (or whatever file is mapped in config.json) into your main .env file. ✅


📋 List Available Environments

npx env-flow list

This will output all available environment mappings from your config.json so you know exactly what you can switch to.


📌 Check Current Environment

npx env-flow status

This shows which environment is currently active (based on the contents of .env and what it matches in your config).


📚 Example

Let’s say you have the following .env files:

.env.local

DB_HOST=localhost
DB_USER=root
DB_PASS=password

.env.stage

DB_HOST=staging-db.example.com
DB_USER=stg_user
DB_PASS=stg_password

.env.production

DB_HOST=prod-db.example.com
DB_USER=prod_user
DB_PASS=prod_password

You can switch to your local environment like this:

npx env-flow switch local

And BAM! 🎉 Your .env is now loaded with local settings—ready to go.


❤️ Why You’ll Love It

  • Tired of juggling multiple .env files? ✔️ This solves it.
  • Nervous about pushing the wrong config to production? ✔️ Safe switching.
  • Want more time coding, less time debugging config issues? ✔️ You’re welcome.

🙌 Contributing

Found a bug? Got an idea for a killer feature?

Please open an issue or submit a pull request. This project thrives on your feedback and contributions!


💭 Final Thoughts

If you’ve ever felt the frustration of managing .env files manually, Envv Flow is here to save the day.

Because life’s too short for environment variable drama.

Now go forth, switch with confidence, and let Envv Flow handle the work!


✍️ Author

Crafted with universe, keyboard rage, and just the right amount of “why isn’t this built-in already?” by cinfinit.

If this saved you from one more accidental .env.production mishap in local dev— you’re welcome. 😎

Feel free to send praise, bug reports, or memes. No feature requests on Mondays. 😉