@claude-agent/envcheck 1.5.1 → 1.5.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.
- package/README.md +27 -2
- package/package.json +12 -3
package/README.md
CHANGED
|
@@ -3,10 +3,29 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@claude-agent/envcheck)
|
|
4
4
|
[](https://www.npmjs.com/package/@claude-agent/envcheck)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://nodejs.org/)
|
|
6
8
|
|
|
7
|
-
> Validate
|
|
9
|
+
> **Static environment validation for CI/CD and monorepos.** Validate `.env` files against `.env.example`, detect secrets, check types - all before your app runs.
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
## The Problem
|
|
12
|
+
|
|
13
|
+
You've seen this before:
|
|
14
|
+
- "It works on my machine" → missing env var in production
|
|
15
|
+
- Deployment fails → forgot to add new API key
|
|
16
|
+
- Secret leaked → accidentally committed real credentials
|
|
17
|
+
- Monorepo chaos → different apps have inconsistent env configs
|
|
18
|
+
|
|
19
|
+
**envcheck catches these issues in CI/CD, before they reach production.**
|
|
20
|
+
|
|
21
|
+
## Key Features
|
|
22
|
+
|
|
23
|
+
- **Shift-left validation** - Catch missing vars before deployment, not at runtime
|
|
24
|
+
- **Monorepo support** - Scan all apps/packages with one command (`envcheck monorepo`)
|
|
25
|
+
- **Secret detection** - Warns about AWS keys, GitHub tokens, Stripe keys in your .env
|
|
26
|
+
- **Type validation** - Validate URLs, ports, emails, JSON without running your app
|
|
27
|
+
- **GitHub Action** - Drop-in CI/CD integration
|
|
28
|
+
- **Zero dependencies** - Fast install, minimal footprint
|
|
10
29
|
|
|
11
30
|
**Built autonomously by [Claude](https://claude.ai)** - an AI assistant by Anthropic.
|
|
12
31
|
|
|
@@ -459,8 +478,14 @@ WITH_EQUALS=postgres://user:pass@host/db?opt=val
|
|
|
459
478
|
- **CI-friendly** - Exit codes and JSON output
|
|
460
479
|
- **Comprehensive** - Parse, validate, compare, generate
|
|
461
480
|
- **Monorepo support** - Scan all apps/packages in one command
|
|
481
|
+
- **TypeScript support** - Full type definitions included
|
|
462
482
|
- **Well-tested** - 87 tests covering edge cases
|
|
463
483
|
|
|
484
|
+
## Examples
|
|
485
|
+
|
|
486
|
+
See the [examples directory](./examples) for complete demos:
|
|
487
|
+
- [Monorepo Demo](./examples/monorepo-demo) - Demonstrates scanning a full monorepo structure
|
|
488
|
+
|
|
464
489
|
## vs. dotenv-safe / envalid / dotenv-mono
|
|
465
490
|
|
|
466
491
|
| Feature | envcheck | dotenv-safe | envalid | dotenv-mono |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-agent/envcheck",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.5.2",
|
|
4
|
+
"description": "Static .env validation for CI/CD and monorepos. Validate against .env.example, detect secrets, check types - before deployment.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
7
7
|
"bin": {
|
|
@@ -16,17 +16,26 @@
|
|
|
16
16
|
"environment",
|
|
17
17
|
"variables",
|
|
18
18
|
"validate",
|
|
19
|
+
"validation",
|
|
19
20
|
"lint",
|
|
21
|
+
"linter",
|
|
20
22
|
"cli",
|
|
21
23
|
"github-action",
|
|
22
24
|
"ci-cd",
|
|
25
|
+
"cicd",
|
|
23
26
|
"pre-commit",
|
|
24
27
|
"git-hooks",
|
|
25
28
|
"secrets",
|
|
26
29
|
"security",
|
|
27
30
|
"monorepo",
|
|
28
31
|
"turborepo",
|
|
29
|
-
"
|
|
32
|
+
"nx",
|
|
33
|
+
"lerna",
|
|
34
|
+
"workspaces",
|
|
35
|
+
"static-analysis",
|
|
36
|
+
"type-validation",
|
|
37
|
+
"envfile",
|
|
38
|
+
"config"
|
|
30
39
|
],
|
|
31
40
|
"author": "Claude Agent <claude-agent@agentmail.to>",
|
|
32
41
|
"license": "MIT",
|