envwarden
v1.0.22
Published
The End of Oops-I-Committed-My-.env
Readme
envwarden : The End of Oops-I-Committed-My-.env
A simple tool to protect your environment variables by ensuring .env files never get committed to Git.
🚀 Features
- Automatically adds
.envto.gitignoreif missing - Removes
.envfrom Git tracking if it was accidentally committed - Integrates with Husky for pre-commit protection
🛠️ Quick Start
Install envsafe:
npm install envwardenInitialize the package
npx envwarden init
That's it! envsafe will automatically protect your .env files from being committed to Git.
🧩 How It Works
- Checks if
.envis in.gitignoreand adds it if missing - Detects if
.envis being tracked by Git and removes it from tracking - Uses Husky to prevent accidental commits of
.envfiles
🤔 Why Use ensafe?
- Peace of Mind:
No more "oh no" moments after a late-night push. - Team Safety:
Protects everyone on your team, even the new folks.
