DEV Community

Cover image for 🐾 Meet WildEnv: Tame Your Environment Variables Like a Beast"
Pavel
Pavel

Posted on

🐾 Meet WildEnv: Tame Your Environment Variables Like a Beast"

πŸ’¬ "Tame your wild .env files. Detect chaos. Archive securely. Restore instantly."


🐱 What is WildEnv?

As Node.js developers, we've all faced the same pain:

  • Untracked .env files
  • Missing variables in production
  • Forgetting to add .env to .gitignore
  • Sharing secrets across devices (manually!)

πŸ”₯ WildEnv fixes that.


🦴 What it does

WildEnv is a CLI tool that helps you:

Command What it does
πŸ†• wildenv init Creates .env, .env.example, ignores
πŸ” wildenv check Finds missing or extra variables
πŸ“¦ wildenv pack Zips env files for safe transfer
πŸ“‚ wildenv restore Unzips and restores everything

And it speaks both English πŸ‡ΊπŸ‡Έ and Russian πŸ‡·πŸ‡Ί out of the box!


πŸš€ Quick Start

Install locally or just use it with npx:

npx wildenv init
npx wildenv check
npx wildenv pack
npx wildenv restore
Enter fullscreen mode Exit fullscreen mode

πŸ’Ό Use Case: Sharing .env between machines

You're working on a laptop, and want to continue on your desktop:

npx wildenv pack
# β†’ transfers 'env.bundle.zip' to other machine
npx wildenv restore
Enter fullscreen mode Exit fullscreen mode

Boom πŸ’₯ β€” all your env files restored, safely.

πŸ›‘οΈ Security

  • Automatically updates .gitignore and .npmignore
  • Supports .env.secret for future encryption πŸ”
  • Makes backups before overwrite (*.bak)

🌍 Language Support

🌍 Select language / Π’Ρ‹Π±Π΅Ρ€ΠΈΡ‚Π΅ язык:
> πŸ‡ΊπŸ‡Έ English
  πŸ‡·πŸ‡Ί Русский
Enter fullscreen mode Exit fullscreen mode

πŸ“¦ Tech stack

  • Node.js + CommonJS
  • CLI via inquirer, chalk, dotenv
  • Zip via adm-zip
  • Tested with jest
  • 100% open source on GitHub

πŸ§ͺ Test Coverage

Yes, everything is tested:

npm test
Enter fullscreen mode Exit fullscreen mode

βœ”οΈ init, check, pack, restore β€” fully covered


πŸ“„ License

MIT β€” do what you want.


✨ Final Thoughts

WildEnv started as a simple idea to tame my .env files. Now it's a fully working, tested, multi-language tool.

If you've ever shared .env by copying, screenshotting, or sending via Telegram β€” this tool is for you.

πŸ’€ No more chaos.
🐾 Time to tame your environment.


⭐ Star the repo if you like it: github.com/Xzdes/wildenv

Top comments (0)