{"_id":"@12britz/plight","name":"@12britz/plight","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@12britz/plight","version":"1.0.0","description":"Pretty Lighthouse CLI tool with stunning box-style terminal output","type":"module","main":"src/index.js","bin":{"plight":"src/index.js"},"keywords":["lighthouse","cli","performance","web-vitals","accessibility","seo","pretty-print","terminal"],"author":{"name":"12britz"},"license":"MIT","homepage":"https://github.com/12britz/plight#readme","bugs":{"url":"https://github.com/12britz/plight/issues"},"engines":{"node":">=22.0.0"},"scripts":{"setup":"node scripts/setup.js","postinstall":"node scripts/setup.js","prepublishOnly":"npm run setup"},"dependencies":{"boxen":"^7.1.0","chalk":"^5.3.0","cli-table3":"^0.6.5","lighthouse":"^13.0.0","ora":"^8.0.0","yargs":"^17.7.2","chrome-launcher":"^1.1.2"},"repository":{"type":"git","url":"git+https://github.com/12britz/plight.git"},"gitHead":"7dffeaf543d0910a1d0688568117b4cc4d476c15","_id":"@12britz/plight@1.0.0","_nodeVersion":"25.8.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-TWcsMW7TR0iQ824Ssg7uzOhgvA2bG2IVw9/7MtogcWWney0V9FX9dCB4BuQP3yT+vzXEI+j/vYHNRLYqcvM/ug==","shasum":"b3b15fe797ce57b782504cc1dbf533b9e9da6fb6","tarball":"https://registry.npmjs.org/@12britz/plight/-/plight-1.0.0.tgz","fileCount":15,"unpackedSize":46707,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHzyCD9xQwxEeTTNKp2dTdha6wDJdSy/7294tfKhquWQAiBk/appo6EOMEOsQbBOw3oBSEBpbWZE9h+zBQOdtsh0mQ=="}]},"_npmUser":{"name":"12britz","email":"brittochristy@gmail.com"},"directories":{},"maintainers":[{"name":"12britz","email":"brittochristy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plight_1.0.0_1778245883158_0.2878274271331511"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-08T13:11:23.064Z","1.0.0":"2026-05-08T13:11:23.341Z","modified":"2026-05-08T13:11:23.580Z"},"maintainers":[{"name":"12britz","email":"brittochristy@gmail.com"}],"description":"Pretty Lighthouse CLI tool with stunning box-style terminal output","homepage":"https://github.com/12britz/plight#readme","keywords":["lighthouse","cli","performance","web-vitals","accessibility","seo","pretty-print","terminal"],"repository":{"type":"git","url":"git+https://github.com/12britz/plight.git"},"author":{"name":"12britz"},"bugs":{"url":"https://github.com/12britz/plight/issues"},"license":"MIT","readme":"# plight 🎨\n\n```text\n ██████╗ ██╗     ██╗ ██████╗ ██╗  ██╗████████╗\n ██╔══██╗██║     ██║██╔════╝ ██║  ██║╚══██╔══╝\n ██████╔╝██║     ██║██║  ███╗███████║   ██║   \n ██╔═══╝ ██║     ██║██║   ██║██╔══██║   ██║   \n ██║     ███████╗██║╚██████╔╝██║  ██║   ██║   \n ╚═╝     ╚══════╝╚═╝ ╚═════╝ ╚═╝  ╚═╝   ╚═╝\n```\n\nA beautifully formatted Lighthouse CLI tool with stunning box-style terminal output. Make Google Lighthouse audits look amazing in your terminal.\n\n![plight demo](https://img.shields.io/badge/demo-coming%20soon-blue)\n\n---\n\n## Why plight?\n\n- ✨ **Beautiful terminal output** - Box-style borders with colored scores\n- 🎨 **Syntax highlighting** - Color-coded pass/warn/fail status\n- 📊 **Core Web Vitals** - LCP, CLS, FCP, INP at a glance\n- 📜 **Audit history** - Save and replay past audits\n- 🚀 **Zero config** - Works out of the box with sensible defaults\n\n---\n\n## Install\n\n```bash\n# Install globally\nnpm install -g @12britz/plight\n\n# Or use without installing\nnpx @12britz/plight <url>\n```\n\n**Requirements:** Node.js 22+, Chrome or Chromium installed.\n\n---\n\n## Quick Start\n\n```bash\n# Basic audit\nplight https://example.com\n\n# Run with desktop emulation\nplight https://example.com --emulated-form-factor desktop\n\n# Output JSON report\nplight --json https://example.com\n```\n\n---\n\n## Features\n\n### 📝 Audit Options\n| Flag | Description | Example |\n|------|-------------|---------|\n| `--only-categories` | Run specific categories | `plight --only-categories performance,seo <url>` |\n| `--emulated-form-factor` | Device emulation | `plight --emulated-form-factor desktop <url>` |\n| `--throttling` | Disable throttling | `plight --no-throttling <url>` |\n| `-q, --quiet` | Suppress progress | `plight -q <url>` |\n\n### 📊 Output Options\n| Flag | Description | Example |\n|------|-------------|---------|\n| `-j, --json` | Output raw JSON | `plight -j <url>` |\n| `-o, --output` | Save to file | `plight -o report.json <url>` |\n\n### 📚 History\n| Flag | Description | Example |\n|------|-------------|---------|\n| `-H, --history` | View all history | `plight --history` |\n| `-H, --history #` | See entry #N | `plight --history 1` |\n| `-r, --replay` | Replay last | `plight --replay` |\n| `-r, --replay #` | Replay #N | `plight --replay 2` |\n\n---\n\n## Examples\n\n### Basic Audit\n```bash\nplight https://makro.co.za\n```\n\n### Desktop Audit\n```bash\nplight https://example.com --emulated-form-factor desktop\n```\n\n### Performance Only\n```bash\nplight --only-categories performance https://example.com\n```\n\n### Save JSON Report\n```bash\nplight -j https://example.com > report.json\n```\n\n### View History\n```bash\n# List all audits\nplight --history\n\n# Replay last audit\nplight --replay\n```\n\n---\n\n## Output Example\n\n```text\n┌──────────────────────────────────────────────────────────────┐\n│         ██████╗ ██╗     ██╗ ██████╗ ██╗  ██╗████████╗        │\n│         ██╔══██╗██║     ██║██╔════╝ ██║  ██║╚══██╔══╝        │\n│         ██████╔╝██║     ██║██║  ███╗███████║   ██║           │\n│         ██╔═══╝ ██║     ██║██║   ██║██╔══██║   ██║           │\n│         ██║     ███████╗██║╚██████╔╝██║  ██║   ██║           │\n│         ╚═╝     ╚══════╝╚═╝ ╚═════╝ ╚═╝  ╚═╝   ╚═╝           │\n│                                                              │\n│          plight  pretty Lighthouse CLI                       │\n└──────────────────────────────────────────────────────────────┘\n\n┌──────────────────────────────────────┐\n│ Category Scores                     │\n├──────────────────┬────────┬─────────┤\n│ Category         │ Score  │ Status  │\n├──────────────────┼────────┼─────────┤\n│ Performance      │ 95     │ PASS    │\n│ Accessibility    │ 100    │ PASS    │\n│ Best Practices   │ 92     │ PASS    │\n│ SEO              │ 100    │ PASS    │\n└──────────────────────────────────────┘\n```\n\n---\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-2790060f9e72edc873270e8008da5f41"}