{"id":21611270,"url":"https://github.com/runnerty/executor-puppeteer-export","last_synced_at":"2026-05-21T07:40:47.722Z","repository":{"id":34976558,"uuid":"193535315","full_name":"runnerty/executor-puppeteer-export","owner":"runnerty","description":"Runnerty module: Puppeteer wrapper to export html to PDF/image","archived":false,"fork":false,"pushed_at":"2023-07-18T22:05:00.000Z","size":298,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T23:47:04.384Z","etag":null,"topics":["executor","html-to-image","html-to-pdf","pdf","puppeteer","runnerty","screenshot"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/runnerty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-24T15:50:34.000Z","updated_at":"2022-02-05T18:24:22.000Z","dependencies_parsed_at":"2024-11-24T21:21:56.269Z","dependency_job_id":null,"html_url":"https://github.com/runnerty/executor-puppeteer-export","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runnerty%2Fexecutor-puppeteer-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runnerty%2Fexecutor-puppeteer-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runnerty%2Fexecutor-puppeteer-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runnerty%2Fexecutor-puppeteer-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runnerty","download_url":"https://codeload.github.com/runnerty/executor-puppeteer-export/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244166707,"owners_count":20409178,"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","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":["executor","html-to-image","html-to-pdf","pdf","puppeteer","runnerty","screenshot"],"created_at":"2024-11-24T21:11:47.078Z","updated_at":"2026-05-21T07:40:42.700Z","avatar_url":"https://github.com/runnerty.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://runnerty.io\"\u003e\n    \u003cimg height=\"257\" src=\"https://runnerty.io/assets/header/logo-stroked.png\"\u003e\n  \u003c/a\u003e\n  \u003cp align=\"center\"\u003eSmart Processes Management\u003c/p\u003e\n\u003c/p\u003e\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Dependency Status][david-badge]][david-badge-url]\n\u003ca href=\"#badge\"\u003e\n\u003cimg alt=\"code style: prettier\" src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg\"\u003e\n\u003c/a\u003e\n\n# Puppeteer executor for [Runnerty]:\n\nPuppeteer wrapper to export html to PDF/image with [ejs] template support.\n\n### Installation:\n\nThrough NPM\n\n```bash\nnpm i @runnerty/executor-puppeteer-export\n```\n\nYou can also add modules to your project with [runnerty]\n\n```bash\nnpx runnerty add @runnerty/executor-puppeteer-export\n```\n\nThis command installs the module in your project, adds example configuration in your [config.json] and creates an example plan of use.\n\nIf you have installed [runnerty] globally you can include the module with this command:\n\n```bash\nrunnerty add @runnerty/executor-puppeteer-export\n```\n\n### Configuration sample:\n\nAdd in [config.json]:\n\n```json\n{\n  \"id\": \"puppeteer_default\",\n  \"type\": \"@runnerty-executor-puppeteer-export\"\n}\n```\n\n### Plan sample:\n\nAdd in [plan.json]:\n\n```json\n{\n  \"id\": \"puppeteer_default\",\n  \"html\": \"./workspace/templates/template_one.html\",\n  \"pdf\": {\n    \"path\": \"sample.pdf\",\n    \"format\": \"a4\",\n    \"printBackground\": false\n  }\n}\n```\n\n### Plan advanced:\n\nAdd in [plan.json]:\n\n```json\n{\n  \"id\": \"puppeteer_default\",\n  \"html\": \"./workspace/templates/template_one.html\",\n  \"launch\": {\n    \"headless\": false,\n    \"executablePath\": \"/path/to/Chrome\"\n  },\n  \"authenticate\": {\n    \"username\": \"my_usr_name\",\n    \"password\": \"my_pass\"\n  },\n  \"userAgent\": \"Runnerty\",\n  \"extraHTTPHeaders\": {\n    \"my_header\": \"my_header_value\"\n  },\n  \"bypassCSP\": false,\n  \"offlineMode\": false,\n  \"cacheEnabled\": true,\n  \"javaScriptEnabled\": true,\n  \"cookie\": {\n    \"name\": \"string\",\n    \"value\": \"string\"\n  },\n  \"viewport\": {\n    \"width\": 1024,\n    \"height\": 900\n  },\n  \"geolocation\": {\n    \"latitude\": 36.6,\n    \"longitude\": 2.36\n  },\n  \"options\": {\n    \"waitUntil\": \"load\"\n  },\n  \"pdf\": {\n    \"path\": \"sample.pdf\",\n    \"format\": \"a4\",\n    \"printBackground\": true,\n    \"margin\": {\n      \"top\": \"20px\",\n      \"left\": \"20px\",\n      \"right\": \"20px\",\n      \"bottom\": \"20px\"\n    }\n  },\n  \"screenshot\": {\n    \"path\": \"sample.png\",\n    \"type\": \"png\"\n  },\n  \"args\": {\n    \"subject\": \"Sample plan\",\n    \"message\": \"Value for template one EJS var\"\n  }\n}\n```\n\n[runnerty]: https://www.runnerty.io\n[downloads-image]: https://img.shields.io/npm/dm/@runnerty/executor-puppeteer-export.svg\n[npm-url]: https://www.npmjs.com/package/@runnerty/executor-puppeteer-export\n[npm-image]: https://img.shields.io/npm/v/@runnerty/executor-puppeteer-export.svg\n[david-badge]: https://david-dm.org/runnerty/executor-puppeteer-export.svg\n[david-badge-url]: https://david-dm.org/runnerty/executor-puppeteer-export\n[config.json]: http://docs.runnerty.io/config/\n[plan.json]: http://docs.runnerty.io/plan/\n[ejs]: https://ejs.co\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunnerty%2Fexecutor-puppeteer-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunnerty%2Fexecutor-puppeteer-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunnerty%2Fexecutor-puppeteer-export/lists"}