lintpage 0.4.1 → 0.5.0

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 CHANGED
@@ -30,6 +30,31 @@ The CLI automatically prepends `https://` if no protocol is provided:
30
30
  lintpage example.com
31
31
  ```
32
32
 
33
+ ### Auditing localhost
34
+
35
+ ```bash
36
+ npx lintpage localhost:3000
37
+ ```
38
+
39
+ No flag is needed. A loopback target is detected, `http://` is assumed unless
40
+ you type a protocol, and the audit runs against your dev server.
41
+
42
+ Checks needing a public origin do not run: robots.txt, sitemap.xml, CORS, TTFB,
43
+ broken internal links, and the AI crawler checks, which probe your site as
44
+ external bots that cannot reach your machine. They appear in the output rather
45
+ than being silently skipped: by default you see only the counts, but you can use
46
+ `--format json` or `--format github` to see which individual checks were
47
+ skipped. `ssl`, `https-links` and `canonical-self-referencing` still run but
48
+ report as INFO, since a dev server is expected to be http.
49
+
50
+ `--ai-only` is refused against localhost for the same reason.
51
+
52
+ In a pre-commit hook:
53
+
54
+ ```bash
55
+ npx lintpage localhost:3000 --quiet
56
+ ```
57
+
33
58
  ### Output
34
59
 
35
60
  ```