site-post-screenshots
v0.2.1
Published
Create polished social-post screenshots from real websites.
Downloads
36
Maintainers
Readme
site-post-screenshots
Create polished social-post screenshots from real websites.
npx site-post-screenshots https://example.com --out ./post-shotsOutputs include:
- raw desktop and mobile screenshots
x-desktop-1600x900.pngx-mobile-1600x900.pngdesktop-1600x1200.pngdesktop-mobile-1600x900.png
Install
npm install -g site-post-screenshots
site-post-screenshots https://example.comIf Playwright reports that Chromium is missing:
npx playwright install chromiumAliases:
site-post-shots https://example.comOptions
site-post-screenshots <url> \
--out ./post-shots \
--desktop 1440x1000 \
--mobile 390x844 \
--delay 1Useful capture options:
site-post-screenshots https://example.com --selector main
site-post-screenshots https://example.com --hide-selectors ".cookie-banner,.chat-widget"Publish
Before publishing, check the package:
npm run check
npm pack --dry-runThen publish from the package root:
npm login
npm publish --access publicIf the package name is taken on npm, change name in package.json before publishing.
