@deveko/devguard 0.1.8 → 0.1.11

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 CHANGED
@@ -19,6 +19,10 @@ Built with Rust. Fast by default.
19
19
  - ✅ Priority-based rule engine
20
20
  - ✅ Auto-generates `.env.example` from `.env`
21
21
  - ✅ Clean, readable CLI output
22
+ - 🖥️ Cross platform (Windows, Mac, Linux)
23
+ - 🤖 Auto-builds via GitHub Actions
24
+ - ⚙️ Custom rules via `devguard.config.toml`
25
+ - 🔄 Custom rules override built-in rules
22
26
 
23
27
  ---
24
28
 
@@ -28,7 +32,7 @@ Built with Rust. Fast by default.
28
32
  npx @deveko/devguard
29
33
  ```
30
34
 
31
- That's it. No installation needed.
35
+ That's it. Works on Windows, Mac and Linux. No installation needed.
32
36
 
33
37
  ---
34
38
 
@@ -45,6 +49,25 @@ npx @deveko/devguard check --path ./apps/backend/.env
45
49
 
46
50
  # Generate .env.example from .env
47
51
  npx @deveko/devguard init
52
+
53
+ # Use custom config path
54
+ npx @deveko/devguard check --config ./custom/devguard.config.toml
55
+ ```
56
+
57
+ ### Example `devguard.config.toml`
58
+
59
+ ```toml
60
+ [[rules]]
61
+ pattern = "TOKEN"
62
+ rule = "min_length"
63
+ value = "64"
64
+ message = "must be at least 64 characters"
65
+
66
+ [[rules]]
67
+ pattern = "NODE_ENV"
68
+ rule = "one_of"
69
+ value = "staging,production,development"
70
+ message = "must be staging, production or development"
48
71
  ```
49
72
 
50
73
  ### Example `.env`
@@ -107,7 +130,15 @@ Runs pattern-based rules with priority ordering:
107
130
  **3. Missing Keys Check**
108
131
  Compares `.env` against `.env.example` - any key in `.env.example` missing from `.env` is flagged!!
109
132
 
110
- No config needed. Just run it.
133
+ **4. Custom Rules(optional)**
134
+ Create `devguard.config.toml` in your project root:
135
+
136
+ | Rule type | Description |
137
+ | --------- | ----------- |
138
+ | `min_length` | Value must be at least N characters |
139
+ | `one_of` | Value must be one of the specified options |
140
+
141
+ Custom rules override built-in rules with matching patterns!!
111
142
 
112
143
  ---
113
144
 
@@ -125,9 +156,9 @@ No config needed. Just run it.
125
156
  - [x] `devguard init` -> auto-generate `.env.example`
126
157
  - [x] Missing required keys detection
127
158
  - [x] Sectioned output (Warnings, Errors, Missing)
128
- - [ ] Custom rules via `devguard.config.toml`
129
- - [ ] CI/CD integration
130
- - [ ] GitHub Action
159
+ - [x] CI/CD integration via GitHub Action
160
+ - [x] Cross platform binaries (Windows, Mac, Linux)
161
+ - [x] Custom rules via `devguard.config.toml`
131
162
  - [ ] VSCode extension
132
163
  - [ ] Docker config validation
133
164
  - [ ] Secret leak detection in source files
package/bin/.gitkeep ADDED
File without changes
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deveko/devguard",
3
- "version": "0.1.8",
3
+ "version": "0.1.11",
4
4
  "description": "A fast .env scanner for Node.js projects",
5
5
  "bin": {
6
6
  "devguard": "cli.js"