@pageskim/generator
v0.1.0
Published
CLI wrapper around @pageskim/core: pageskim generate <file|dir|-> — emits .llm.md/.llm.json sibling files.
Maintainers
Readme
@pageskim/generator
CLI that emits PageSkim sibling files (page.llm.md + optional .llm.json, split directories, and a site index) for HTML files, directories, or stdin.
Most users want the umbrella pageskim package, which exposes this as pageskim generate:
npx pageskim generate ./dist --json --split --site-index --base-url https://example.comThis package exists as a standalone dependency (pageskim-generate bin) for tooling that only needs generation. All conversion logic lives in @pageskim/core; output is deterministic — reruns are byte-identical.
Options: --out DIR (mirror structure elsewhere), --json, --split, --site-index, --base-url URL, --quiet. Reads stdin with -. Exit codes: 0 ok, 1 usage/IO, 2 extraction failed (client-rendered page — pre-render it or use the SDK's fromDocument).
Docs: publisher guide · framework adapters. MIT.
