{"id":13736623,"url":"https://github.com/denorg/qrcode","last_synced_at":"2025-08-12T18:06:13.482Z","repository":{"id":55945101,"uuid":"264291724","full_name":"denorg/qrcode","owner":"denorg","description":"📇 Generate QR code images in Deno","archived":false,"fork":false,"pushed_at":"2023-10-09T10:02:37.000Z","size":137,"stargazers_count":45,"open_issues_count":10,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-08T15:31:51.845Z","etag":null,"topics":["deno","denoland","denorg","hacktoberfest","hacktoberfest2023","qrcode","qrcode-generator","typescript"],"latest_commit_sha":null,"homepage":"https://denorg.github.io/qrcode/","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/denorg.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}},"created_at":"2020-05-15T20:26:10.000Z","updated_at":"2025-07-09T13:17:57.000Z","dependencies_parsed_at":"2022-08-15T10:00:57.919Z","dependency_job_id":null,"html_url":"https://github.com/denorg/qrcode","commit_stats":{"total_commits":37,"total_committers":5,"mean_commits":7.4,"dds":0.6216216216216216,"last_synced_commit":"87101e061a7b1f9f9d5ddb304ca8c9e99262e9e1"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/denorg/qrcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fqrcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fqrcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fqrcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fqrcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denorg","download_url":"https://codeload.github.com/denorg/qrcode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fqrcode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270109375,"owners_count":24528789,"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-12T02:00:09.011Z","response_time":80,"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":["deno","denoland","denorg","hacktoberfest","hacktoberfest2023","qrcode","qrcode-generator","typescript"],"created_at":"2024-08-03T03:01:25.239Z","updated_at":"2025-08-12T18:06:13.438Z","avatar_url":"https://github.com/denorg.png","language":"JavaScript","readme":"# 📇 QR Code\n\nGenerate QR codes in Deno, as base64-encoded images, completely dependency-free and requires no binary.\n\nThis is a port of [zenozeng/node-yaqrcode](https://github.com/zenozeng/node-yaqrcode), which itself is a port of the QR code generator in the d-project.\n\n[![Deno CI](https://github.com/denorg/qrcode/workflows/Deno%20CI/badge.svg)](https://github.com/denorg/qrcode/actions)\n[![GitHub](https://img.shields.io/github/license/denorg/qrcode)](https://github.com/denorg/qrcode/blob/master/LICENSE)\n[![Contributors](https://img.shields.io/github/contributors/denorg/qrcode)](https://github.com/denorg/qrcode/graphs/contributors)\n[![Deno Starter](https://img.shields.io/badge/deno-starter-brightgreen)](https://denorg.github.io/starter/)\n[![Made by Denorg](https://img.shields.io/badge/made%20by-denorg-0082fb)](https://github.com/denorg)\n[![TypeScript](https://img.shields.io/badge/types-TypeScript-blue)](https://github.com/denorg/qrcode)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n## ⭐ Getting started\n\n```ts\nimport { qrcode } from \"https://deno.land/x/qrcode/mod.ts\";\nconst base64Image = qrcode(\"bitcoin:ADDRESS?amount=0.5\u0026label=ORDER\"); // data:image/gif;base64,...\n```\n\n![QR code](https://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/QR_code_for_mobile_English_Wikipedia.svg/240px-QR_code_for_mobile_English_Wikipedia.svg.png)\n\nYou can also add a custom size by specifying `size` in the second parameter:\n\n```ts\nconst fixedSizeImage = await qrcode(\"bitcoin:ADDRESS?amount=0.5\u0026label=ORDER\", { size: 500 });\n```\n### CLI with [DPX](https://github.com/denorg/dpx)\n\nAfter [installing DPX](https://github.com/denorg/dpx), you can directly use the CLI using the `dpx` command:\n\n```bash\ndpx qrcode \u003ctext\u003e\n```\n\n### CLI\n\nAlternatively, you can use it directly from the CLI by using `deno run`:\n\n```bash\ndeno run https://deno.land/x/qrcode/cli.ts \u003ctext\u003e\n```\n\nYou can also install it globally using the following:\n\n```bash\ndeno install https://deno.land/x/qrcode/cli.ts\n```\n\nThen, the package is available to run:\n\n```bash\nqrcode \u003ctext\u003e\n```\n\n## 👩‍💻 Development\n\nRun tests:\n\n```bash\ndeno test\n```\n\n### Notes\n\n- To support typeNumber 40, use the `RS_BLOCK_TABLE` from [davidshimjs/qrcodejs](http://davidshimjs.github.io/qrcodejs/)\n- To support UTF-8, use the code from [davidshimjs/qrcodejs](http://davidshimjs.github.io/qrcodejs/)\n- Returns a base64-encoded image URL\n\n## ⭐ Related Work\n\n- [zenozeng/node-yaqrcode](https://github.com/zenozeng/node-yaqrcode) is the Node.js project that is the origin of this implementation\n\n\n## 📄 License\n\n- MIT © [Denorg](https://den.org.in)\n- Original repo: MIT © [Zeno Zeng](https://github.com/zenozeng/node-yaqrcode)\n- \"QR Code\" is registered trademark of [Denso Wave](http://www.denso-wave.com/qrcode/faqpatent-e.html)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://den.org.in\"\u003e\n    \u003cimg width=\"100\" alt=\"\" src=\"https://raw.githubusercontent.com/denorg/denorg/master/logo.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eA project by \u003ca href=\"https://den.org.in\"\u003eDenorg\u003c/a\u003e, the world's first Deno-focused community\u003cbr\u003eorganization and consulting company. \u003ca href=\"https://den.org.in\"\u003eWork with us →\u003c/a\u003e\u003c/sub\u003e\n\u003c/p\u003e\n","funding_links":[],"categories":["基础设施","Modules"],"sub_categories":["Deno 源","Online Playgrounds","Utils","Assistants"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenorg%2Fqrcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenorg%2Fqrcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenorg%2Fqrcode/lists"}