env-detector 1.0.1 → 1.0.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 +26 -58
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,65 +1,51 @@
1
1
  # env-detector
2
2
 
3
- Smart environment variable analyzer and .env generator.
3
+ Smart environment variable analyzer and `.env` generator.
4
4
 
5
5
  Automatically detects `process.env` usage, generates `.env`, groups environments, detects missing variables, and audits configuration.
6
6
 
7
- ---
8
-
9
- ## Install
10
-
11
- Run directly:
12
-
13
7
  npx env-detector
14
-
15
- OR install globally:
16
-
17
- npm install -g env-detector
8
+ ```
18
9
 
19
10
  ---
20
11
 
21
12
  ## Usage
22
13
 
14
+ ```bash
23
15
  env-detector
16
+ ```
24
17
 
25
18
  ---
26
19
 
27
20
  ## Commands
28
21
 
29
- Generate .env
30
- env-detector
31
-
32
- Compare env usage
33
- env-detector --compare
34
-
35
- Check missing variables
36
- env-detector --check
37
-
38
- Fix unused variables
39
- env-detector --fix
40
-
41
- Security scan
42
- env-detector --security
43
-
44
- Strict mode (CI)
45
- env-detector --strict
46
-
47
- Interactive fill
48
- env-detector --ask
22
+ | Command | Description |
23
+ |---------|-------------|
24
+ | `env-detector` | Generate `.env` |
25
+ | `env-detector --compare` | Compare env usage |
26
+ | `env-detector --check` | Check missing variables |
27
+ | `env-detector --fix` | Fix unused variables |
28
+ | `env-detector --security` | Security scan |
29
+ | `env-detector --strict` | Strict mode (CI) |
30
+ | `env-detector --ask` | Interactive fill |
49
31
 
50
32
  ---
51
33
 
52
34
  ## Example
53
35
 
54
- Code:
36
+ **Code:**
55
37
 
56
- process.env.DB_HOST
57
- process.env.PORT
38
+ ```javascript
39
+ process.env.DB_HOST
40
+ process.env.PORT
41
+ ```
58
42
 
59
- Generated `.env`
43
+ **Generated `.env`:**
60
44
 
61
- DB_HOST=
45
+ ```
46
+ DB_HOST=
62
47
  PORT=
48
+ ```
63
49
 
64
50
  ---
65
51
 
@@ -67,32 +53,14 @@ PORT=
67
53
 
68
54
  If config file contains:
69
55
 
56
+ ```javascript
70
57
  development: {
71
58
  username: process.env.DBUSERNAME
72
59
  }
60
+ ```
73
61
 
74
62
  Generated:
75
63
 
64
+ ```
76
65
  # development
77
- DBUSERNAME=
78
-
79
- ---
80
-
81
- ## Features
82
-
83
- - Detect process.env usage
84
- - Auto generate .env
85
- - Detect missing variables
86
- - Detect unused variables
87
- - Detect empty values
88
- - Extract fallback defaults
89
- - Group by environment
90
- - Security scan
91
- - CI strict mode
92
- - Auto fix unused
93
-
94
- ---
95
-
96
- ## License
97
-
98
- MIT
66
+ DBUSERNAME=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "env-detector",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Smart .env generator and auditor",
5
5
  "main": "src/scan.js",
6
6
  "bin": {