.env パーサー
.envファイルをパース・バリデーション。秘密情報検出、JSON/Docker変換に対応。
11 vars3 issues2 sensitive
| # | Key | Value | Status |
|---|---|---|---|
| 1 | # Database | ||
| 2 | DB_HOST | localhost | OK |
| 3 | DB_PORT | 5432 | OK |
| 4 | DB_NAME | myapp_production | OK |
| 5 | DB_USER | admin | OK |
| 6 | DB_PASSWORD | ************ | secret |
| 8 | # API Keys | ||
| 9 | API_KEY | ************ | secret |
| 10 | NEXT_PUBLIC_APP_URL | https://example.com | OK |
| 11 | NODE_ENV | production | OK |
| 13 | # Broken examples | ||
| 14 | MISSING_EQUALS | (empty) | 1 err |
| 15 | BAD_QUOTES | "unclosed | 1 err |
| 16 | SPACES_NO_QUOTES | hello world | 1 err |
Issues Found
- Line 14: MISSING_EQUALS — Missing = sign
- Line 15: BAD_QUOTES — Mismatched quotes
- Line 16: SPACES_NO_QUOTES — Value contains spaces without quotes