{"id":23854750,"url":"https://github.com/GNURub/ngx-qrcode","last_synced_at":"2025-09-08T01:32:23.179Z","repository":{"id":262400635,"uuid":"861713234","full_name":"GNURub/ngx-qrcode","owner":"GNURub","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-23T09:02:15.000Z","size":9434,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-23T09:41:09.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gnurub.github.io/ngx-qrcode/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GNURub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-09-23T11:49:03.000Z","updated_at":"2024-12-23T09:02:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"c17e0e1e-e72a-4e63-a947-d82e7162ed5c","html_url":"https://github.com/GNURub/ngx-qrcode","commit_stats":null,"previous_names":["gnurub/ngx-qrcode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GNURub%2Fngx-qrcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GNURub%2Fngx-qrcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GNURub%2Fngx-qrcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GNURub%2Fngx-qrcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GNURub","download_url":"https://codeload.github.com/GNURub/ngx-qrcode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232271882,"owners_count":18497768,"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":[],"created_at":"2025-01-03T00:01:35.148Z","updated_at":"2025-01-03T00:03:20.294Z","avatar_url":"https://github.com/GNURub.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components"],"sub_categories":["QR Codes"],"readme":"# ngx-qrcode 🎨\n\nThis is a simple Angular +18 component to generate QR codes.\nBased on [react-native-qrcode-skia](https://github.com/enzomanuelmangano/react-native-qrcode-skia) library.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://gnurub.github.io/ngx-qrcode/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/GNURub/ngx-qrcode/refs/heads/main/.assets/poster.png\" width=\"950\" title=\"demo\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Requirements\n\n- Angular 18, 19\n\n## Installation\n\n```sh\nnpm i -S @gnurub/ngx-qrcode\n```\n\nor\n\n```sh\nng add @gnurub/ngx-qrcode\n```\n\n## Usage\n\nYou might need a very simple QRCode component in your app and you can achieve that by using the basic props (value and size). Here is an example:\n\n```tsx\nimport { QRCodeComponent } from \"@gnurub/ngx-qrcode\";\n\n@Component({\n  selector: \"app-root\",\n  imports: [QRCodeComponent],\n  template: ` \u003cngx-qrcode [value]=\"'https://example.com'\"\u003e\u003c/ngx-qrcode\u003e `,\n})\nexport class AppComponent {}\n```\n\nWith Logo\n\n```tsx\nimport { QRCodeComponent, QRLogoDirective } from \"@gnurub/ngx-qrcode\";\n\n@Component({\n  selector: \"app-root\",\n  imports: [QRCodeComponent, QRLogoDirective],\n  template: ` \u003cngx-qrcode [value]=\"'https://example.com'\"\u003e\u003csvg qrLogo\u003e...\u003c/svg\u003e | \u003cimg qrLogo /\u003e\u003c/ngx-qrcode\u003e `,\n})\nexport class AppComponent {}\n```\n\n## Props QRCodeComponent\n\n- `value` (string) - The value encoded in the QRCode.\n\n- `errorCorrectionLevel` (ErrorCorrectionLevelType, optional) - The error correction level for the QRCode. Level L: 7%, level M: 15%, level Q: 25%, level H: 30%. Default value is 'H'.\n\n- `strokeWidth` (number, optional) - The percentage of the strokeWidth (0 to 1). Default value is 1.\n\n- `pathStyle` ('fill' | 'stroke', optional) - The style of the QRCode path: 'fill' or 'stroke'. Default value is 'stroke'.\n\n- `padding` (number, optional) - The padding applied around the QRCode. Default value is 0.\n\n- `size` (number) - The size of the QRCode.\n\n- `shape` (Shape, optional) - The shape of the QR code elements. Can be 'square', 'circle', 'rounded', 'diamond', 'triangle', or 'star'. Default is 'rounded'.\n\n- `gap` (number, optional) - The gap between QR code elements. Default is 0.\n\n- `eyeShape` (Shape, optional) - The shape of the eye patterns. Can be 'square', 'circle', 'rounded', 'diamond', 'triangle', or 'star'. Default is 'rounded'.\n\n- `eyeGap` (number, optional) - The gap in the eye patterns. Default is 0.\n\n## Props QRLogoDirective\n\n- `logoAreaSize` (number, optional) - The size of the logo area within the QRCode.\n\n## License\n\nMIT\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGNURub%2Fngx-qrcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGNURub%2Fngx-qrcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGNURub%2Fngx-qrcode/lists"}