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 +25 -0
- package/dist/cli.cjs +99 -4
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +99 -4
- package/dist/cli.mjs.map +1 -1
- package/dist/formatter-Bg4mtE_M.mjs +5 -0
- package/dist/formatter-Bg4mtE_M.mjs.map +1 -0
- package/dist/formatter-DGoiZDhP.cjs +5 -0
- package/dist/formatter-DGoiZDhP.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +882 -0
- package/dist/index.d.mts +882 -0
- package/dist/index.mjs +1 -1
- package/package.json +2 -1
- package/dist/formatter-BFKK5Mks.cjs +0 -5
- package/dist/formatter-BFKK5Mks.cjs.map +0 -1
- package/dist/formatter-CuMgo6fc.mjs +0 -5
- package/dist/formatter-CuMgo6fc.mjs.map +0 -1
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
|
```
|