@pagepocket/cli
v0.7.1
Published
CLI for capturing offline snapshots of web pages.
Readme
@pagepocket/cli
CLI for capturing offline snapshots of web pages using the PagePocket library and NetworkInterceptorAdapter event streams.
Install
npm i -g @pagepocket/cliUsage
pp https://example.com
pp https://example.com -o ./snapshots
pp https://example.com -o ./snapshots --overwriteOutput
Snapshots are written to a folder named after the page title (or snapshot) inside
the output directory (default: current directory). Example layout:
<output>/<title>/index.html
<output>/<title>/api.json
<output>/<title>/<same-origin paths>
<output>/<title>/external_resources/<cross-origin paths>Development
pnpm install
pnpm --filter @pagepocket/cli build