TOOLID=web-share-preview-checker. Zero-dependency Node 22+ policy estimator for exported page metadata, configured preview profiles, and a local image file. It makes no network request, opens no browser, and generates no image or platform screenshot. Its previews are privacy-safe measurements, expressly labeled approximations.
This walkthrough uses the tool's public README and checked-in example files. Run the command from a repository checkout with Node.js 22+; inspect the source before using it on your own files.
Run the checked-in example
node bin/web-share-preview-checker.mjs --root examples --page passing.json --profiles wide-profile.json
node bin/web-share-preview-checker.mjs --root examples --page wide.json --profiles both-profiles.json
node bin/web-share-preview-checker.mjs --root examples --page square.json --profiles both-profiles.json
npm run checkRead the result
The commands exit 0, 1, and 1. The wide image produces warnings for the square profile; the square image produces warnings for the wide profile. --help prints usage; --human writes a terse stderr summary. src/index.mjs exports TOOLID, LIMITS, imageDimensions, and async evaluatePreviews(page,profiles,{readImage,now}). The CLI confines all three real file paths within the real --root and writes nothing.
Where this check stops
This local walkthrough does not establish the state of a live production system or replace the limits documented in the repository.
Before adapting the command to your own workflow, review the accepted inputs, exit codes and safety boundaries in the README.
Compiled with AI assistance from checked-in public documentation and example scripts. Run the example and review the repository's current documentation before relying on its result.