{"id":25902550,"url":"https://github.com/pollrobots/qrts","last_synced_at":"2026-02-15T12:35:39.026Z","repository":{"id":279924409,"uuid":"940479773","full_name":"PollRobots/qrts","owner":"PollRobots","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-01T19:36:30.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T02:56:15.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/PollRobots.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}},"created_at":"2025-02-28T08:50:56.000Z","updated_at":"2025-02-28T09:27:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"5da8498a-0ddc-4c6d-9aef-920e7a3ff3d4","html_url":"https://github.com/PollRobots/qrts","commit_stats":null,"previous_names":["pollrobots/qrts"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/PollRobots/qrts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollRobots%2Fqrts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollRobots%2Fqrts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollRobots%2Fqrts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollRobots%2Fqrts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PollRobots","download_url":"https://codeload.github.com/PollRobots/qrts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollRobots%2Fqrts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29478354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"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":[],"created_at":"2025-03-03T03:16:46.288Z","updated_at":"2026-02-15T12:35:39.020Z","avatar_url":"https://github.com/PollRobots.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qrts\n\nQR Code\u0026trade; encoding in TypeScript with no additional dependencies.\n\n[![npm version](https://badge.fury.io/js/@pollrobots%2Fqrts.svg)](https://npmjs.com/package/@pollrobots/qrts)\n\n```typescript\nimport { generate } from \"qrts\";\n\nconst qrcode = generate(\"foo bar baz\");\n```\n\n# API\n\n## generate\n\n```typescript\ngenerate(data: string|string[], options?: Partial\u003cGenerateOptions\u003e): QRCode\n```\n\n### params\n\n- **data** text to be encoded in the QR Code.\n\n  If an array of strings is passed, then they will be encoded in turn.\n\n  For each string that is encoded, either the `ALPHA_NUMERIC` or `8BIT_BYTE` mode will be used to encode it. The `NUMERIC` and `KANJI` modes are not supported. If the contents can be encoded using `ALHPA_NUMERIC`, then that will be used, otherwise the string will be encoded as `UTF-8` and the `8BIT_BYTE` mode will be used.\n\n- **options** (optionally) configures the QR Code generation.\n  ```typescript\n  interface GenerateOptions {\n    version: number;\n    errorCorrectionLevel: ErrorCorrectionLevel;\n  }\n  ```\n  - **version** a number between 1 and 40 that specifies how large the QR Code should be. The size of the generated code will be 4 × version + 17. If this is not specified, or set to `-1`, then the smallest size capable of containing the data will be used.\n  - **errorCorrectionLevel** \u0026mdash; This is one of `Low`, `Medium`, `Quartile`, or `High`, representing increasing levels of redundancy in the QR Code. This will default to `High`.\n\n### returns\n\nThis returns a `QRCode` object which has the following interface\n\n```typescript\ninterface QRCode {\n  size: number;\n  isDark: (row: number, col: number) =\u003e boolean;\n  isPatternModule: (row: number, col: number) =\u003e boolean;\n}\n```\n\n- **size** the size of the QR Code in modules. The code will always be square.\n- **isDark** Indicates whether a specific module is dark.\n- **isPatternModule** Indicates whether a specific module is one of the corner blocks used by readers to locate and orient the QR Code\n\n# Demo\n\nYou can see the code in action at https://pollrobots.com/qrts.html\n\n# Credits\n\nThis library is a fork of the [qr.js](https://npmjs.org/package/qr.js) package which appears to have been orphaned. See [LICENSE-qrjs](./LICENSE-qrjs) for the license from that project.\n\nThat package has been forked, converted to TypeScript, and modernized. In addition, support has been added for the `ALPHA_NUM` mode allowing smaller codes in some circumstances.\n\n**qr.js** is itself a fork of [qrcode-generator](https://github.com/kazuhikoarase/qrcode-generator) by [Kazuhiko Arase](https://github.com/kazuhikoarase). See [LICENSE-qrcode](./LICENSE-qrcode) for the license from that project.\n\nQR Code\u0026trade; is a registered trademark of DENSO WAVE INCORPORATED\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpollrobots%2Fqrts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpollrobots%2Fqrts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpollrobots%2Fqrts/lists"}