{"id":13604087,"url":"https://github.com/wukongyang/taro-code-creator","last_synced_at":"2025-04-11T22:32:33.064Z","repository":{"id":212488326,"uuid":"731617935","full_name":"wukongyang/taro-code-creator","owner":"wukongyang","description":"Code for taro,Supports generating barcodes and QR codes","archived":false,"fork":false,"pushed_at":"2024-08-07T09:49:53.000Z","size":482,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T22:41:57.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/wukongyang.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-12-14T13:38:32.000Z","updated_at":"2024-10-13T13:07:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3813c9a-6ca7-4d12-b9b5-f5bfa26a9df2","html_url":"https://github.com/wukongyang/taro-code-creator","commit_stats":null,"previous_names":["wukongyang/taro-code-creator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wukongyang%2Ftaro-code-creator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wukongyang%2Ftaro-code-creator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wukongyang%2Ftaro-code-creator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wukongyang%2Ftaro-code-creator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wukongyang","download_url":"https://codeload.github.com/wukongyang/taro-code-creator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248489870,"owners_count":21112652,"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":"2024-08-01T19:00:39.666Z","updated_at":"2025-04-11T22:32:28.945Z","avatar_url":"https://github.com/wukongyang.png","language":"JavaScript","funding_links":[],"categories":["第三方库和组件"],"sub_categories":["Taro1"],"readme":"# taro-code-creator\n\n**Supports generating barcodes and QR codes**\n\n## Supporting platforms\n\n**weapp h5 tt swan alipay qq rn**\n\n## Installing\n\n```\nyarn add taro-code-creator\n```\n\n## Basic Usage\n\n```tsx\nimport CodeCreator from \"taro-code-creator\";\n\nconst App = () =\u003e {\n  return (\n    \u003c\u003e\n      \u003cCodeCreator\n        codeText=\"test\"\n        size={420}\n        logo={defaultHeadSculpture}\n        logoSize={88}\n      /\u003e\n      \u003cCodeCreator type=\"bar\" width={400} height={100} codeText=\"test\" /\u003e\n    \u003c/\u003e\n  );\n};\n```\n![img](./example.png)\n\n## Component API\n\n\u003e Based on [taro-code-creator](https://github.com/wukongyang/taro-code-creator)\n\n|        Prop         |                Description                | Default | type |\n| :-----------------: | :---------------------------------------: | :-----: | :--: |\n|      **type**       |                 code type                 |  `qr`   | all  |\n|    **codeText**     |              QR code content              |         | all  |\n|      **color**      |               QR code color               | `#000`  | all  |\n| **backgroundColor** |         QR code background color          | `#fff`  | all  |\n|      **size**       |               QR code size                |  `200`  |  qr  |\n|      **logo**       |                 logo url                  |   ``    |  qr  |\n|    **logoSize**     |                 Logo size                 |  `60`   |  qr  |\n|    **callback**     | Callback function for generating QR codes |         | all  |\n|      **width**      |               barcode width               |         | bar  |\n|     **height**      |              barcode height               |         | bar  |\n|     **format**      |              barcode format               |         | bar  |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwukongyang%2Ftaro-code-creator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwukongyang%2Ftaro-code-creator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwukongyang%2Ftaro-code-creator/lists"}