{"id":19196436,"url":"https://github.com/nkcmr/angular-qrcode","last_synced_at":"2026-04-19T02:31:06.514Z","repository":{"id":19282501,"uuid":"22519306","full_name":"nkcmr/angular-qrcode","owner":"nkcmr","description":"an angular module used to generate qr codes in the browser","archived":false,"fork":false,"pushed_at":"2014-08-01T17:07:26.000Z","size":156,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-26T21:24:29.013Z","etag":null,"topics":["angular","frontend","javascript","qrcode"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/nkcmr.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}},"created_at":"2014-08-01T17:05:23.000Z","updated_at":"2017-02-13T19:48:47.000Z","dependencies_parsed_at":"2022-09-25T05:30:22.542Z","dependency_job_id":null,"html_url":"https://github.com/nkcmr/angular-qrcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nkcmr/angular-qrcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkcmr%2Fangular-qrcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkcmr%2Fangular-qrcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkcmr%2Fangular-qrcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkcmr%2Fangular-qrcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nkcmr","download_url":"https://codeload.github.com/nkcmr/angular-qrcode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkcmr%2Fangular-qrcode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31991947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["angular","frontend","javascript","qrcode"],"created_at":"2024-11-09T12:13:42.151Z","updated_at":"2026-04-19T02:31:06.495Z","avatar_url":"https://github.com/nkcmr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## angular-qrcode\nangular-qrcode is an angular library that completely automates qr code generation in the browser. it also does qr code generation in an angular manner by binding with the passed in data and auto-updating with any change. \n\nthis library uses a `\u003ccanvas\u003e` to draw the qr code, and since the `\u003ccanvas\u003e` element has seen about a 90% adoption rate, there shouldn't be any compatability issues.\n\n### install\nthere are two usable files in this repo. `lib/qr-code.js` is an unminified version and should be used in development, and `build/qr-code.min.js` is minified and is suitable for production. to get started just throw your choice into a `\u003cscript\u003e` tag:\n\n```html\n\u003cscript type=\"application/javascript\" src=\"/path/to/qr-code.min.js\"\u003e\n```\n\nand lastly, **be sure** to include it somewhere in your module definition:\n\n```javascript\nangular.module('myApp', ['qrcode']);\n```\n\n### usage\nusing angular-qrcode couldn't be more simple. simply create a tag like this:\n\n```html\n\u003cqrcode size=\"200\" data=\"i am a lovely qr-code\"\u003e\u003c/qrcode\u003e\n```\n    \nand if you want auto-updating qr codes be sure to put your scope member in template delimiters:\n\n```html\n\u003cqrcode size=\"{{ qr_code_size }}\" data=\"{{ qr_code_data }}\"\u003e\u003c/qrcode\u003e\n```\n    \n\n### api\nthere are a few more customization attributes that you can put on your qr code. here they are:\n\n- `size=\"\"` - size of the qr code in pixels (width and height are the same). this attribute is **required** for all qr code elements\n- `data=\"\"` - the data to be encoded into the qr code. need i further explain?\n- `correct-level=\"medium\"` - this attribute specifies the amount of correction level for the qr code. this wikipedia article can explain it further ([qr code error correction](http://en.wikipedia.org/wiki/QR_code#Error_correction)). the 4 possible settings are as follows:\n    - `low` - 7% error correction\n    - `medium` - 15% error correction (default)\n    - `quartile` - 25% error correction\n    - `high` - %30 error correction\n- `background=\"#ffffff\"` - the background color of the qr code. this defaults to white\n- `foreground=\"#000000\"` - the foreground color of the qr code. this defaults to black\n\n### license\nangular-qrcode is licensed under MIT. do with it what you will.\n\n##### The MIT License (MIT)\n\nCopyright \u0026copy; 2014 Nick Comer\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnkcmr%2Fangular-qrcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnkcmr%2Fangular-qrcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnkcmr%2Fangular-qrcode/lists"}