@danielszlaski/envguard 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +28 -27
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # EnvGuard 🔐
1
+ # EnvGuard
2
2
 
3
3
  Keep your environment variables in sync with your codebase.
4
4
 
@@ -42,31 +42,32 @@ envguard scan
42
42
  Example output:
43
43
 
44
44
  ```
45
- 🔍 Scanning codebase for environment variables...
45
+ ✔ Found 1 .env file(s) and 0 serverless.yml file(s)
46
46
 
47
- ✓ Found 12 unique environment variables in code
48
- ✓ Found 10 variables in .env
49
- ✓ Found 8 variables in .env.example
47
+ Checking ./
50
48
 
51
- âš ī¸ Found 5 issue(s):
49
+ Found 12 variable(s) used in this scope
50
+ Found 10 variable(s) in .env
51
+ Found 8 variable(s) in .env.example
52
52
 
53
- 🚨 Missing from .env:
54
- 1. STRIPE_SECRET_KEY
55
- Used in: src/payment.js, src/checkout.ts
56
- 2. API_KEY
57
- Used in: src/api/client.ts
53
+ ✖ Missing from .env:
54
+ â€ĸ STRIPE_SECRET_KEY
55
+ Used in: src/payment.js, src/checkout.ts
56
+ â€ĸ API_KEY
57
+ Used in: src/api/client.ts
58
58
 
59
- âš ī¸ Unused variables (consider removing):
60
- 1. OLD_API_URL
61
- Defined in .env but never used in code
59
+ ⚠ Unused variables:
60
+ â€ĸ OLD_API_URL
62
61
 
63
- 📝 Missing from .env.example:
64
- 1. DATABASE_URL
65
- Used in: src/db/connection.ts
66
- 2. JWT_SECRET
67
- Used in: src/auth/jwt.ts
62
+ Missing from .env.example:
63
+ â€ĸ DATABASE_URL
64
+ â€ĸ JWT_SECRET
68
65
 
69
- 💡 Run `envguard fix` to auto-generate .env.example
66
+ ──────────────────────────────────────────────────
67
+
68
+ ⚠ Total: 5 issue(s) across 1 location(s)
69
+
70
+ Run `envguard fix` to auto-generate .env.example
70
71
  ```
71
72
 
72
73
  ### Auto-generate .env.example
@@ -248,17 +249,17 @@ provider:
248
249
  ### Scan output for serverless.yml
249
250
 
250
251
  ```
251
- 📂 Checking src/lambda/serverless.yml
252
+ Checking src/lambda/serverless.yml
252
253
 
253
254
  Found 3 variable(s) in serverless.yml
254
255
  Found 2 variable(s) used in code
255
256
 
256
- âš ī¸ Unused variables in serverless.yml:
257
- 1. DATABASE_URL
257
+ ⚠ Unused variables in serverless.yml:
258
+ â€ĸ DATABASE_URL
258
259
 
259
- 🚨 Missing from serverless.yml:
260
- 1. LOG_LEVEL
261
- Used in: src/lambda/handler.js
260
+ ✖ Missing from serverless.yml:
261
+ â€ĸ LOG_LEVEL
262
+ Used in: src/lambda/handler.js
262
263
  ```
263
264
 
264
265
  ### Key Features
@@ -296,7 +297,7 @@ envguard scan --strict
296
297
 
297
298
  Example output (non-strict):
298
299
  ```
299
- â„šī¸ Skipped known runtime variables (use --strict to show):
300
+ Skipped known runtime variables (use --strict to show):
300
301
  Serverless Framework: IS_OFFLINE, SLS_OFFLINE
301
302
  CI/CD: CI
302
303
  AWS Lambda: AWS_REGION
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielszlaski/envguard",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "CLI tool to keep environment variables in sync with your codebase",
5
5
  "main": "dist/index.js",
6
6
  "bin": {