{"id":17032941,"url":"https://github.com/up9cloud/node-qrcode-image-parser","last_synced_at":"2025-10-30T01:48:29.065Z","repository":{"id":48440129,"uuid":"91908603","full_name":"up9cloud/node-qrcode-image-parser","owner":"up9cloud","description":"Parse QR code image to raw data.","archived":false,"fork":false,"pushed_at":"2021-11-11T20:55:29.000Z","size":97,"stargazers_count":6,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-10T12:40:15.729Z","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/up9cloud.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}},"created_at":"2017-05-20T18:29:58.000Z","updated_at":"2023-08-25T01:14:51.000Z","dependencies_parsed_at":"2022-08-30T10:11:27.347Z","dependency_job_id":null,"html_url":"https://github.com/up9cloud/node-qrcode-image-parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fnode-qrcode-image-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fnode-qrcode-image-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fnode-qrcode-image-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/up9cloud%2Fnode-qrcode-image-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/up9cloud","download_url":"https://codeload.github.com/up9cloud/node-qrcode-image-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248570116,"owners_count":21126357,"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-10-14T08:31:05.064Z","updated_at":"2025-10-30T01:48:24.035Z","avatar_url":"https://github.com/up9cloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-qrcode-image-parser\n\n[![Build Status](https://travis-ci.org/up9cloud/node-qrcode-image-parser.svg?branch=master)](https://travis-ci.org/up9cloud/node-qrcode-image-parser)\n[![Coverage Status](https://coveralls.io/repos/github/up9cloud/node-qrcode-image-parser/badge.svg?branch=master)](https://coveralls.io/github/up9cloud/node-qrcode-image-parser?branch=master)\n\nParse QR code image to raw data.\n\n## Basic Usage\n\n```js\nimport fs from 'fs'\nimport { parse } from 'qrcode-image-parser'\n\nlet data = fs.readFileSync('./login.jpg');\nconst parsed = parse(data)\nconsole.log(parsed)\n// [\n//   [1,1,1,1,1,1,1],\n//   [1,0,0,0,0,0,1],\n//   [1,0,1,1,1,0,1],\n//   [1,0,1,1,1,0,1],\n//   [1,0,1,1,1,0,1],\n//   [1,0,0,0,0,0,1],\n//   [1,1,1,1,1,1,1],\n// ]\n```\n\n## Advanced Usage\n\n```js\nconst parsed = parse(data, {\n    white: '██',\n    black: '  ',\n    dimantion: 1\n})\nconsole.log(parsed)\n// `██████████████\n// ██          ██\n// ██  ██████  ██\n// ██  ██████  ██\n// ██  ██████  ██\n// ██          ██\n// ██████████████`\n```\n\n```js\nconst parsed = parse(data, {\n    dimantion: 2\n})\nconsole.log(parsed)\n// [\n//   \"1111111\",\n//   \"1000001\",\n//   \"1011101\",\n//   \"1011101\",\n//   \"1011101\",\n//   \"1000001\",\n//   \"1111111\",\n// ]\n```\n\n```js\nconst parsed = parse(data, {\n    dimantion: 1\n})\nconsole.log(parsed)\n// `1111111\n// 1000001\n// 1011101\n// 1011101\n// 1011101\n// 1000001\n// 1111111`\n```\n\n## TODO\n\n- ~~Wechat login qrcode~~\n- Wechat personal info qrcode\n- ~~DataURL (base64)~~\n- colored qrcode\n- ~~png~~\n- svg\n- gif\n- pdf\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fup9cloud%2Fnode-qrcode-image-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fup9cloud%2Fnode-qrcode-image-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fup9cloud%2Fnode-qrcode-image-parser/lists"}