{"_id":"@asdsadw12312dwd2112xz/dotenv-lint-cli","name":"@asdsadw12312dwd2112xz/dotenv-lint-cli","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@asdsadw12312dwd2112xz/dotenv-lint-cli","version":"1.0.0","description":"Lint and validate .env files","type":"module","bin":{"dotenv-lint":"dist/index.js"},"scripts":{"build":"tsup","dev":"tsup --watch"},"keywords":["dotenv","lint","env","validate","cli"],"author":{"name":"okirmio"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/okirmio-create/dotenv-lint-cli.git"},"dependencies":{"chalk":"^5.4.1","commander":"^13.1.0"},"devDependencies":{"@types/node":"^22.14.1","tsup":"^8.4.0","typescript":"^5.8.3"},"gitHead":"81dce07086bb842d7c5541c5a519d6b91d8d87e1","_id":"@asdsadw12312dwd2112xz/dotenv-lint-cli@1.0.0","bugs":{"url":"https://github.com/okirmio-create/dotenv-lint-cli/issues"},"homepage":"https://github.com/okirmio-create/dotenv-lint-cli#readme","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-j5WSIlCrCjnoILp/yE2JtR6hRoG0AdD2kWhra10mazxDEy3tdwLGBkTmZFVVeoHeNElH6UWQsVy2dPHjjRQsDg==","shasum":"0bb58fa883a2df32eeea3ed5395a50daef1bd07d","tarball":"https://registry.npmjs.org/@asdsadw12312dwd2112xz/dotenv-lint-cli/-/dotenv-lint-cli-1.0.0.tgz","fileCount":7,"unpackedSize":23890,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCi082BY4nhTeokjSWzhEZU27zdg2gSaKNfhokj/sxAGgIgfrGRSdFg53NPI7aa8m0FSOJs3O6qMrxIyxXywnRcEY4="}]},"_npmUser":{"name":"asdsadw12312dwd2112xz","email":"okirmio@gmail.com"},"directories":{},"maintainers":[{"name":"asdsadw12312dwd2112xz","email":"okirmio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dotenv-lint-cli_1.0.0_1775436243825_0.9029108595282094"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-06T00:44:03.767Z","1.0.0":"2026-04-06T00:44:04.038Z","modified":"2026-04-06T00:44:04.259Z"},"maintainers":[{"name":"asdsadw12312dwd2112xz","email":"okirmio@gmail.com"}],"description":"Lint and validate .env files","homepage":"https://github.com/okirmio-create/dotenv-lint-cli#readme","keywords":["dotenv","lint","env","validate","cli"],"repository":{"type":"git","url":"git+https://github.com/okirmio-create/dotenv-lint-cli.git"},"author":{"name":"okirmio"},"bugs":{"url":"https://github.com/okirmio-create/dotenv-lint-cli/issues"},"license":"MIT","readme":"# dotenv-lint-cli\n\nLint and validate `.env` files. Catches common issues like duplicate keys, empty values, missing quotes, invalid key names, and inconsistent quoting. Compares `.env` against `.env.example` to find missing or extra keys.\n\n## Install\n\n```bash\nnpm install -g dotenv-lint-cli\n```\n\nOr use directly with npx:\n\n```bash\nnpx dotenv-lint-cli\n```\n\n## Usage\n\n```bash\ndotenv-lint                          # lint .env in current directory\ndotenv-lint --file .env.production   # lint a specific file\ndotenv-lint --example .env.sample    # compare against a custom example file\ndotenv-lint --fix                    # auto-fix fixable issues\ndotenv-lint --json                   # output results as JSON\ndotenv-lint --strict                 # treat warnings as errors (exit 1)\n```\n\n## Options\n\n| Flag | Default | Description |\n|------|---------|-------------|\n| `-f, --file <path>` | `.env` | Path to the .env file to lint |\n| `-e, --example <path>` | `.env.example` | Path to the example file for comparison |\n| `--fix` | — | Auto-fix fixable issues (missing quotes, inconsistent quoting) |\n| `--json` | — | Output results as JSON |\n| `--strict` | — | Treat warnings as errors |\n\n## Rules\n\n| Rule | Severity | Fixable | Description |\n|------|----------|---------|-------------|\n| `invalid-line` | error | no | Line is not a valid key=value assignment or comment |\n| `invalid-key` | error | no | Key name contains invalid characters |\n| `duplicate-key` | error | no | Same key defined more than once |\n| `missing-key` | error | no | Key exists in `.env.example` but not in `.env` |\n| `empty-value` | warning | no | Key has an empty value |\n| `missing-quotes` | warning | yes | Value contains spaces but is not quoted |\n| `extra-key` | warning | no | Key exists in `.env` but not in `.env.example` |\n| `inconsistent-quotes` | info | yes | File mixes single and double quotes |\n\n## JSON Output\n\n```json\n{\n  \"file\": \".env\",\n  \"issueCount\": 2,\n  \"errors\": 1,\n  \"warnings\": 1,\n  \"infos\": 0,\n  \"issues\": [\n    {\n      \"line\": 3,\n      \"severity\": \"error\",\n      \"rule\": \"duplicate-key\",\n      \"message\": \"Duplicate key \\\"API_KEY\\\" (first defined on line 1)\",\n      \"key\": \"API_KEY\"\n    }\n  ]\n}\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-274e00eb3ed3ed75c0d56d8067bf5122"}