{"id":19149628,"url":"https://github.com/mabhub/puppeteer-screenshot-cli","last_synced_at":"2025-08-03T04:13:22.146Z","repository":{"id":29358585,"uuid":"120797052","full_name":"mabhub/puppeteer-screenshot-cli","owner":"mabhub","description":"Simple wrapper around Puppeteer to take screenshot from command line.","archived":false,"fork":false,"pushed_at":"2022-02-12T13:42:29.000Z","size":90,"stargazers_count":16,"open_issues_count":7,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-15T02:35:36.223Z","etag":null,"topics":["chrome","chromium","command-line","javascript","puppeteer","screenshot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mabhub.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-08T17:57:00.000Z","updated_at":"2024-04-04T05:39:33.000Z","dependencies_parsed_at":"2022-08-07T14:16:15.785Z","dependency_job_id":null,"html_url":"https://github.com/mabhub/puppeteer-screenshot-cli","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/mabhub/puppeteer-screenshot-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabhub%2Fpuppeteer-screenshot-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabhub%2Fpuppeteer-screenshot-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabhub%2Fpuppeteer-screenshot-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabhub%2Fpuppeteer-screenshot-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mabhub","download_url":"https://codeload.github.com/mabhub/puppeteer-screenshot-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabhub%2Fpuppeteer-screenshot-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268492828,"owners_count":24258891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome","chromium","command-line","javascript","puppeteer","screenshot"],"created_at":"2024-11-09T08:09:07.818Z","updated_at":"2025-08-03T04:13:22.125Z","avatar_url":"https://github.com/mabhub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Puppeteer screenshot CLI\n\nSimple wrapper around [Puppeteer](https://github.com/GoogleChrome/puppeteer) to take screenshot from command line.\n\n## Usage\n\n```shell\nnpm i [-g] puppeteer-screenshot-cli\n\npuppeteer-screenshot --url 'http://perdu.com' --selector 'h1' --output ./perdu.jpg\npuppeteer-screenshot -u 'http://perdu.com' -s 'body' -o - \u003e /tmp/perdu.jpg\npuppeteer-screenshot 'http://perdu.com' \u003e perdu.jpg\n\n```\n\n### Options\n\n```\n  Headless screenshot with Puppeteer\n\n    -u, --url string        URL to navigate page to. The url should include scheme, e.g. https://.\n\n    -o, --output string     The file path to save the image to. If path is a relative path, then it is\n                            resolved relative to current working directory. If no path is provided, the\n                            image won't be saved to the disk.\n\n    -s, --selector string   A CSS selector of an element to wait for.\n                            Default: body\n\n    -t, --type string       Specify screenshot type, can be either jpeg or png.\n                            Default: png\n\n    -q, --quality number    The quality of the image, between 0-100. Not applicable to png images.\n\n    -w, --width number      Viewport width in pixels\n                            Default: 800\n\n    -h, --height number     Viewport height in pixels\n                            Default: 600\n\n    --timeout  number       Maximum time to wait for in milliseconds.\n                            Default: 30000\n\n    -f, --fullPage          When true, takes a screenshot of the full scrollable page.\n                            Defaults: false.\n\n    --headless              Whether to run browser in headless mode.\n                            Default: true\n\n    -?, --help              This help\n```\n\n## See also\n\n- [puppeteer-trace-cli](https://www.npmjs.com/package/puppeteer-trace-cli)  \n  Simple wrapper around [Puppeteer](https://github.com/GoogleChrome/puppeteer) to trace webpage from command line.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabhub%2Fpuppeteer-screenshot-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmabhub%2Fpuppeteer-screenshot-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabhub%2Fpuppeteer-screenshot-cli/lists"}