{"id":14220358,"url":"https://github.com/larscom/ng-qrcode-svg","last_synced_at":"2025-04-11T16:39:07.495Z","repository":{"id":62461380,"uuid":"560590852","full_name":"larscom/ng-qrcode-svg","owner":"larscom","description":"Simple QR code generator (SVG only) for Angular","archived":false,"fork":false,"pushed_at":"2025-04-05T02:54:34.000Z","size":2325,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T03:25:23.239Z","etag":null,"topics":["angular","easy","image","img","print","qr","qr-code","qrcode","reactive","render","simple","svg"],"latest_commit_sha":null,"homepage":"","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/larscom.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":"2022-11-01T20:40:35.000Z","updated_at":"2025-04-05T02:54:36.000Z","dependencies_parsed_at":"2024-08-23T23:48:34.931Z","dependency_job_id":"e9634d81-fadf-468e-94e6-528a28e3f2e9","html_url":"https://github.com/larscom/ng-qrcode-svg","commit_stats":{"total_commits":39,"total_committers":2,"mean_commits":19.5,"dds":0.05128205128205132,"last_synced_commit":"7145828a0e742b9416e104d319373b7c93a653eb"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larscom%2Fng-qrcode-svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larscom%2Fng-qrcode-svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larscom%2Fng-qrcode-svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larscom%2Fng-qrcode-svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/larscom","download_url":"https://codeload.github.com/larscom/ng-qrcode-svg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248441895,"owners_count":21104095,"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":["angular","easy","image","img","print","qr","qr-code","qrcode","reactive","render","simple","svg"],"created_at":"2024-08-19T15:01:41.568Z","updated_at":"2025-04-11T16:39:07.474Z","avatar_url":"https://github.com/larscom.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components"],"sub_categories":["QR Codes"],"readme":"# @larscom/ng-qrcode-svg\n\n[![npm-version](https://img.shields.io/npm/v/@larscom/ng-qrcode-svg.svg?label=npm)](https://www.npmjs.com/package/@larscom/ng-qrcode-svg)\n![npm](https://img.shields.io/npm/dw/@larscom/ng-qrcode-svg)\n[![license](https://img.shields.io/npm/l/@larscom/ng-qrcode-svg.svg)](https://github.com/larscom/ng-qrcode-svg/blob/main/LICENSE)\n\n\u003e Simple QR code generator (SVG only) for Angular\n\n![Demo GIF](https://github.com/larscom/ng-qrcode-svg/blob/main/.github/img/demo.gif)\n\n## Installation\n\n```bash\nnpm install @larscom/ng-qrcode-svg\n```\n\n## Usage\n\n1. Import component `QrcodeSvgComponent`\n\n```ts\nimport { NgModule } from '@angular/core'\nimport { QrcodeSvgComponent } from '@larscom/ng-qrcode-svg'\n\n@NgModule({\n  imports: [QrcodeSvgComponent]\n})\nexport class MyModule {}\n```\n\n2. Use the `qrcode-svg` component which will render a QR code in SVG format\n\n```html\n\u003cqrcode-svg value=\"hello world!\"\u003e\u003c/qrcode-svg\u003e\n```\n\n## Component Properties\n\n| Name                                                    | Description                                               | Default   |\n| ------------------------------------------------------- | --------------------------------------------------------- | --------- |\n| @Input() value: string                                  | The value which need to be encoded                        | undefined |\n| @Input() ecl: 'low' \\| 'medium' \\| 'quartile' \\| 'high' | Error correction level                                    | medium    |\n| @Input() borderSize: number                             | The padding between the edge and the QR code (quiet zone) | 2         |\n| @Input() size: string \\| number                         | The size of the QR code SVG (css format)                  | 250px     |\n| @Input() backgroundColor: string                        | The 'path' color (background)                             | #FFFFFF   |\n| @Input() foregroundColor: string                        | The 'rect' color (foreground)                             | #000000   |\n| @Input() alt: string \\| undefined                       | HTML alt attribute                                        | undefined |\n| @Input() ariaLabel: string \\| undefined                 | HTML aria-label attribute                                 | undefined |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarscom%2Fng-qrcode-svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarscom%2Fng-qrcode-svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarscom%2Fng-qrcode-svg/lists"}