env-drift-check 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
**env-drift-check** is the ultimate CLI tool for managing environment variables in Node.js projects. It ensures your local `.env` file is always in sync with `.env.example`, preventing runtime errors caused by missing keys. Perfect for teams and CI/CD pipelines.
|
|
9
9
|
|
|
10
|
-

|
|
11
11
|
|
|
12
12
|
## Why use this?
|
|
13
13
|
|
|
14
|
-
| Feature | Other Tools
|
|
14
|
+
| Feature | Other Tools | **env-drift-check** |
|
|
15
15
|
| :--- | :--- | :--- |
|
|
16
16
|
| **Missing Keys** | Crash & Exit | **Interactive Setup Wizard** |
|
|
17
17
|
| **Validation** | Basic Existence Check | **Rich Types** (Email, URL, Regex, Number) |
|
|
@@ -36,7 +36,7 @@ npm install -g env-drift-check
|
|
|
36
36
|
npm install --save-dev env-drift-check
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
##
|
|
39
|
+
## Usage
|
|
40
40
|
|
|
41
41
|
### 1. Basic Check
|
|
42
42
|
Check if your `.env` is missing any keys defined in `.env.example`. This is great for a quick status check.
|
|
@@ -54,11 +54,11 @@ npx env-drift-check --interactive
|
|
|
54
54
|
npx env-drift-check -i
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-

|
|
58
58
|
|
|
59
59
|
Once completed, your `.env` file is automatically updated!
|
|
60
60
|
|
|
61
|
-

|
|
62
62
|
|
|
63
63
|
### 3. CI/CD Mode (Strict)
|
|
64
64
|
Ensure no broken code hits production. Use strict mode in your build pipeline to fail if environment variables are missing.
|
package/package.json
CHANGED