{"id":15062220,"url":"https://github.com/khalyomede/hypercharged","last_synced_at":"2026-03-10T17:02:56.093Z","repository":{"id":40783998,"uuid":"221801998","full_name":"khalyomede/hypercharged","owner":"khalyomede","description":"Generates a static, prerendered site from your original website.","archived":false,"fork":false,"pushed_at":"2026-02-16T14:45:35.000Z","size":1796,"stargazers_count":0,"open_issues_count":29,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-16T22:29:08.702Z","etag":null,"topics":["html","javascript","node","nodejs","npm","prerender","prerendering","puppeteer","renderer","rendering","single-page-applications"],"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/khalyomede.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-11-14T23:02:51.000Z","updated_at":"2019-11-23T19:00:18.000Z","dependencies_parsed_at":"2025-10-06T08:00:14.022Z","dependency_job_id":null,"html_url":"https://github.com/khalyomede/hypercharged","commit_stats":{"total_commits":56,"total_committers":1,"mean_commits":56.0,"dds":0.0,"last_synced_commit":"90184f05fefff978e26fd34161d42653f6c64056"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/khalyomede/hypercharged","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalyomede%2Fhypercharged","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalyomede%2Fhypercharged/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalyomede%2Fhypercharged/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalyomede%2Fhypercharged/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khalyomede","download_url":"https://codeload.github.com/khalyomede/hypercharged/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalyomede%2Fhypercharged/sbom","scorecard":{"id":558791,"data":{"date":"2025-08-11","repo":{"name":"github.com/khalyomede/hypercharged","commit":"90184f05fefff978e26fd34161d42653f6c64056"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"108 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-22h7-7wwg-qmgg","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-9j5q-479x-43g2","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-mh2h-6j8q-x246","Warn: Project is vulnerable to: GHSA-5q88-cjfq-g2mh","Warn: Project is vulnerable to: GHSA-xp63-6vf5-xf3v","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-897m-rjf5-jp39","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-r7jx-5m6m-cpg9","Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-6x33-pw7p-hmpq","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-82v2-mx6x-wq7q","Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3","Warn: Project is vulnerable to: GHSA-qw93-45r3-p66p","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-px4h-xg32-q955","Warn: Project is vulnerable to: GHSA-cwx2-736x-mf6w","Warn: Project is vulnerable to: GHSA-v39p-96qg-c8rf","Warn: Project is vulnerable to: GHSA-8v63-cqqc-6r2c","Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-fxwf-4rqh-v8g3","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-xfhh-g9f5-x4m4","Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-884p-74jh-xrg2","Warn: Project is vulnerable to: GHSA-j7fq-p9q7-5wfv","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-558p-m34m-vpmq","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-v4rh-8p82-6h5w","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-72mh-269x-7mh5","Warn: Project is vulnerable to: GHSA-h4j5-c7cj-74xg","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T13:02:29.934Z","repository_id":40783998,"created_at":"2025-08-20T13:02:29.934Z","updated_at":"2025-08-20T13:02:29.934Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30343748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["html","javascript","node","nodejs","npm","prerender","prerendering","puppeteer","renderer","rendering","single-page-applications"],"created_at":"2024-09-24T23:32:22.775Z","updated_at":"2026-03-10T17:02:56.026Z","avatar_url":"https://github.com/khalyomede.png","language":"JavaScript","readme":"![](https://user-images.githubusercontent.com/15908747/69000199-29736380-08cc-11ea-8a69-b375da50f7da.png)\n\nGenerates a prerendered site from your original website.\n\n[![npm](https://img.shields.io/npm/v/hypercharged)](https://www.npmjs.com/package/hypercharged) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/hypercharged)](https://bundlephobia.com/result?p=hypercharged@0.3.0) [![npm dev dependency version](https://img.shields.io/npm/dependency-version/hypercharged/dev/puppeteer)](https://www.npmjs.com/package/puppeteer) [![Build Status](https://travis-ci.com/khalyomede/hypercharged.svg?branch=master)](https://travis-ci.com/khalyomede/hypercharged) [![codecov](https://codecov.io/gh/khalyomede/hypercharged/branch/master/graph/badge.svg)](https://codecov.io/gh/khalyomede/hypercharged) [![Stryker mutation score](https://badge.stryker-mutator.io/github.com/khalyomede/hypercharged/master)](https://badge.stryker-mutator.io/github.com/khalyomede/hypercharged/master) [![Maintainability](https://api.codeclimate.com/v1/badges/fdd6b022afedcefeeefe/maintainability)](https://codeclimate.com/github/khalyomede/hypercharged/maintainability)\n[![Known Vulnerabilities](https://snyk.io/test/github/khalyomede/hypercharged/badge.svg?targetFile=package.json)](https://snyk.io/test/github/khalyomede/hypercharged?targetFile=package.json) [![NPM](https://img.shields.io/npm/l/hypercharged)](https://github.com/khalyomede/hypercharged/blob/master/LICENSE)\n\n## Summary\n\n-   [About](#about)\n-   [Installation](#installation)\n-   [Usage](#usage)\n\n## About\n\nI created this library because I used to exploit a home made tool to generate a prerendered website from my original single page application. This prerendered version would help me pass through the SEO issue caused by bots not being able to execute Javascript. The result let bots parse an HTML generated result that help them understand the content of my website without executing Javascript. To do so, I configure my `.htaccess` Apache file rule to redirect bots to the prerendered version of my website.\n\n## Installation\n\n**Before starting**\n\n`puppeteer` will install a supported Chrome executable. It can use additional space so you should be aware of it as it can be a problem on operating system running with a low storage.\n\nIf you need, you can use `puppeteer-core` and instruct it to use an existing Chrome instance. The only downside is if the version of your existing Chrome instance is not the same as the one puppeteer is tested, the behavior of this library will not be guaranteed anymore.\n\nLearn more about the difference [here](https://github.com/GoogleChrome/puppeteer/blob/v2.0.0/docs/api.md#puppeteer-vs-puppeteer-core).\n\n**Install the dependencies**\n\nWith npm:\n\n```bash\nnpm install --save-dev puppeteer@2.* hypercharged\n```\n\nOr with Yarn:\n\n```bash\nyarn add --dev puppeteer@2.* hypercharged\n```\n\n## Usage\n\n-   [1. Simple usage](#1-simple-usage)\n-   [2. Create the output folder if it does not exist](#2-create-the-output-folder-if-it-does-not-exist)\n-   [3. Generating multiple files](#3-generating-multiple-files)\n-   [4. Using custom puppeteer command before starting to copy the HTML content](#4-using-custom-puppeteer-command-before-starting-to-copy-the-html-content)\n-   [5. Passing options before rendering](#5-passing-options-before-rendering)\n-   [6. Enable the debug mode to print what is Hypercharged doing](#6-enable-the-debug-mode-to-print-what-is-hypercharged-doing)\n\n### 1. Simple usage\n\nIn this example, we will render the home page of [http://example.com](http://example.com)\n\n```javascript\nconst Hypercharged = require(\"hypercharged\").default;\n// import Hypercharged from \"hypercharged\";\n\nconst hypercharged = new Hypercharged({\n    input: {\n        url: \"http://example.com\",\n    },\n    output: {\n        folder: {\n            path: __dirname, // means, in directory containing this file\n        },\n    },\n});\n\nhypercharged.addUrl(\"/\");\n\n(async () =\u003e {\n    await hypercharged.render();\n})();\n```\n\nResult:\n\n```bash\nyour-project\n├── index.js\n├── index.html \u003c-- the generated file\n├── package.json\n└── package-lock.json\n```\n\n### 2. Create the output folder if it does not exist\n\nHypercharged does not create the output folder if you do not tell it do to so. In this example, we will instruct it to create it if it does not exist.\n\n```javascript\nconst Hypercharged = require(\"hypercharged\").default;\n// import Hypercharged from \"hypercharged\";\n\nconst hypercharged = new Hypercharged({\n    input: {\n        url: \"http://example.com\",\n    },\n    output: {\n        folder: {\n            path: __dirname + \"/prerendered\",\n            createIfNotExist: true,\n        },\n    },\n});\n\nhypercharged.addUrl(\"/\");\n\n(async () =\u003e {\n    await hypercharged.render();\n})();\n```\n\nResult:\n\n```bash\nyour-project\n├── prerendered\n│\t└── index.html\n├── index.js\n├── package.json\n└── package-lock.json\n```\n\n### 3. Generating multiple files\n\nIn this example, we will generated multiple pages in a given folder.\n\n```javascript\nconst Hypercharged = require(\"hypercharged\").default;\n// import Hypercharged from \"hypercharged\";\n\nconst hypercharged = new Hypercharged({\n    input: {\n        url: \"http://example.com\",\n    },\n    output: {\n        folder: {\n            path: __dirname + \"/prerenderd\",\n            createIfNotExist: true,\n        },\n    },\n});\n\nhypercharged.addUrls([\"/\", \"/about\", \"/contact-us\"]);\n\n(async () =\u003e {\n    await hypercharged.render();\n})();\n```\n\nResult:\n\n```bash\nyour-project\n├── prerendered\n│\t├── about\n│\t│\t└── index.html\n│\t├── contact-us\n│\t│\t└── index.html\n│\t└── index.html\n├── index.js\n├── package.json\n└── package-lock.json\n```\n\n### 4. Using custom puppeteer command before starting to copy the HTML content\n\nIf, like me, you are building a single page application, or any other website that relies on Javascript to generate content dynamically, you might be annoyed by the fact that Hypercharged will not wait that your page has finished to execute Javascript before copying the HTML content.\n\nIn this example, we will use custom Puppeteer commands to overpass this limitation.\n\n```javascript\nconst Hypercharged = require(\"hypercharged\").default;\n// import Hypercharged from \"hypercharged\";\n\nconst hypercharged = new Hypercharged({\n    input: {\n        url: \"http://example.com\",\n    },\n    output: {\n        folder: {\n            path: __dirname + \"/prerendered\",\n            createIfNotExist: true,\n        },\n    },\n});\n\nhypercharged.addUrl(\"/\", async function(page) {\n    await page.waitForNavigation({\n        waitUntil: \"networkidle0\",\n    });\n});\n\n(async () =\u003e {\n    await hypercharged.render();\n})();\n```\n\nFor more information which features you can use with the `page` object, go to [the Puppeteer API](https://github.com/GoogleChrome/puppeteer/blob/v2.0.0/docs/api.md#table-of-contents), then scroll to the Page section.\n\nResult:\n\n```bash\nyour-project\n├── prerendered\n│\t└── index.html\n├── index.js\n├── package.json\n└── package-lock.json\n```\n\n### 5. Passing options before rendering\n\nHypercharged runs a Chrome instance in headless mode using puppeteer. You can add custom options to pass to this library before it launches a healess driven Chrome instance.\n\nIn this example we will tell puppeteer to show the Chrome window while it runs. This is very interesting to troubleshoot issues and understand why something is not going like expected.\n\n```javascript\nconst Hypercharged = require(\"hypercharged\").default;\n// import Hypercharged from \"hypercharged\";\n\nconst hypercharged = new Hypercharged({\n    input: {\n        url: \"http://example.com\",\n    },\n    output: {\n        folder: {\n            path: __dirname,\n        },\n    },\n});\n\nhypercharged.addUrl(\"/\");\n\n(async () =\u003e {\n    await hypercharged.render({\n        headless: false,\n    });\n})();\n```\n\nYou can learn more about which options you can use by reading the [documentation on `puppeteer.launch()` options](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions). `puppeteer.launch()` is the method Hypercharged uses to start a Chrome instance to get your pages content.\n\n### 6. Enable the debug mode to print what is Hypercharged doing\n\nIn this example, we will activate the debug mode to see in the console what is happening with your urls.\n\n```javascript\nconst Hypercharged = require(\"hypercharged\").default;\n// import Hypercharged from \"hypercharged\";\n\nconst hypercharged = new Hypercharged({\n    input: {\n        url: \"http://example.com\",\n    },\n    output: {\n        folder: {\n            path: __dirname,\n        },\n    },\n});\n\nhypercharged.addUrls([\"/\", \"/about\"]);\n\n(async () =\u003e {\n    await hypercharged.render();\n})();\n```\n\nResult in console:\n\n```bash\nrendering /...\nrendered\nrendering /about...\nrendered\n```\n\n### 7. Use an identical page hold function to a bunch of urls\n\nIn this example, we have a lots of urls that needs a same \"put the web page on hold\" function before copying the content.\n\n```javascript\nconst Hypercharged = require(\"hypercharged\").default;\n// import Hypercharged from \"hypercharged\";\n\nconst hypercharged = new Hypercharged({\n    input: {\n        url: \"http://example.com\",\n    },\n    output: {\n        folder: {\n            path: __dirname,\n        },\n    },\n});\n\nconst callback = async page =\u003e {\n    await page.waitFor(\".card\");\n};\n\nhypercharged.addUrls([\"/\", \"/about\", \"/contact-us\"], callback);\n\n(async () =\u003e {\n    await hypercharged.render();\n})();\n```\n\nYou can check the list of all the available method on the puppeteer's `page` object in [the dedicated documentation](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#class-page).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalyomede%2Fhypercharged","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhalyomede%2Fhypercharged","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalyomede%2Fhypercharged/lists"}