{"_id":"@asdsadw12312dwd2112xz/api-health-cli","name":"@asdsadw12312dwd2112xz/api-health-cli","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@asdsadw12312dwd2112xz/api-health-cli","version":"1.0.0","description":"Check API endpoint health with beautiful dashboard output","type":"module","bin":{"api-health":"dist/index.js"},"scripts":{"build":"tsup","dev":"tsup --watch","prepublishOnly":"npm run build"},"keywords":["api","health","check","monitor","status","cli"],"author":{"name":"okirmio-create"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/okirmio-create/api-health-cli.git"},"devDependencies":{"@types/node":"^20.0.0","tsup":"^8.0.0","typescript":"^5.0.0"},"dependencies":{"chalk":"^5.3.0","commander":"^12.0.0"},"engines":{"node":">=18"},"gitHead":"5b01f99732e5d0431d05ba70dda374acec357a15","_id":"@asdsadw12312dwd2112xz/api-health-cli@1.0.0","bugs":{"url":"https://github.com/okirmio-create/api-health-cli/issues"},"homepage":"https://github.com/okirmio-create/api-health-cli#readme","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-QiziJm2Jyu2FQu7LbDT13CVbE0JPDrGxqOWQDXL46UINPZ/6CNTGOISFi7r5MbaztMqYGhtvKA2ss9N5dUbz+A==","shasum":"c33f12d3020171e64d4f00558788824733ba67c3","tarball":"https://registry.npmjs.org/@asdsadw12312dwd2112xz/api-health-cli/-/api-health-cli-1.0.0.tgz","fileCount":6,"unpackedSize":24678,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC/7TTg7HutdVEYLTUCFFd38Y5xVzyNkXpWvgc8yXGbDAIhAPoLGSgvm34oKTo28IJUVPAMASElg8hu2bIcPm6yblcd"}]},"_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/api-health-cli_1.0.0_1775436162131_0.20230414547971542"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-06T00:42:42.029Z","1.0.0":"2026-04-06T00:42:42.268Z","modified":"2026-04-06T00:42:42.496Z"},"maintainers":[{"name":"asdsadw12312dwd2112xz","email":"okirmio@gmail.com"}],"description":"Check API endpoint health with beautiful dashboard output","homepage":"https://github.com/okirmio-create/api-health-cli#readme","keywords":["api","health","check","monitor","status","cli"],"repository":{"type":"git","url":"git+https://github.com/okirmio-create/api-health-cli.git"},"author":{"name":"okirmio-create"},"bugs":{"url":"https://github.com/okirmio-create/api-health-cli/issues"},"license":"MIT","readme":"# api-health-cli\n\nCheck API endpoint health with beautiful dashboard output.\n\n## Installation\n\n```bash\nnpm install -g api-health-cli\n```\n\n## Usage\n\n### Check a single endpoint\n\n```bash\napi-health https://api.example.com/health\n```\n\n### Check multiple endpoints from a config file\n\n```bash\napi-health --config endpoints.json\n```\n\n**endpoints.json** format:\n```json\n[\n  { \"url\": \"https://api.example.com/health\", \"name\": \"Main API\" },\n  { \"url\": \"https://auth.example.com/ping\", \"name\": \"Auth Service\", \"expectedStatus\": 200 }\n]\n```\n\n### Options\n\n| Flag | Description |\n|------|-------------|\n| `--config <file>` | JSON config file with endpoints array |\n| `--json` | Output as JSON |\n| `--interval <seconds>` | Continuous monitoring every N seconds |\n| `--timeout <ms>` | Request timeout in ms (default: 10000) |\n| `-H, --headers <header...>` | Custom headers |\n| `--expected-status <code>` | Expected HTTP status code (default: 200) |\n| `--expected-body <string>` | Check that response body contains this string |\n\n### Examples\n\n```bash\n# JSON output\napi-health https://api.example.com/health --json\n\n# Continuous monitoring every 30 seconds\napi-health --config endpoints.json --interval 30\n\n# Custom timeout\napi-health https://api.example.com/health --timeout 5000\n\n# Custom headers\napi-health https://api.example.com/health -H \"Authorization: Bearer mytoken\"\n\n# Expect specific status and body\napi-health https://api.example.com/health --expected-status 200 --expected-body '\"status\":\"ok\"'\n```\n\n## Output\n\n- **Green** = healthy (2xx, fast response)\n- **Yellow** = slow (>1000ms)\n- **Red** = down or error\n\nSSL certificate expiry is shown for HTTPS endpoints.\n\n## License\n\nMIT © okirmio-create\n","readmeFilename":"README.md","_rev":"1-af8f3c17720eeb7053b62c8fd2f1a58d"}