{"id":25796982,"url":"https://github.com/evocount/ember-scanner","last_synced_at":"2025-02-27T14:55:45.149Z","repository":{"id":48343590,"uuid":"166641824","full_name":"evocount/ember-scanner","owner":"evocount","description":"QR code and barcode scanner for Ember","archived":false,"fork":false,"pushed_at":"2021-07-30T22:52:10.000Z","size":3628,"stargazers_count":8,"open_issues_count":22,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T18:54:18.024Z","etag":null,"topics":["barcode","ember-addon","qr-code","scanner","zxing"],"latest_commit_sha":null,"homepage":"","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/evocount.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-20T09:00:00.000Z","updated_at":"2022-05-31T16:49:15.000Z","dependencies_parsed_at":"2022-08-19T03:21:00.847Z","dependency_job_id":null,"html_url":"https://github.com/evocount/ember-scanner","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evocount%2Fember-scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evocount%2Fember-scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evocount%2Fember-scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evocount%2Fember-scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evocount","download_url":"https://codeload.github.com/evocount/ember-scanner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241026889,"owners_count":19896717,"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":["barcode","ember-addon","qr-code","scanner","zxing"],"created_at":"2025-02-27T14:55:44.584Z","updated_at":"2025-02-27T14:55:45.140Z","avatar_url":"https://github.com/evocount.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/evocount/ember-scanner.svg?branch=master)](https://travis-ci.org/evocount/ember-scanner)\n[![npm version](https://badge.fury.io/js/ember-scanner.svg)](https://badge.fury.io/js/ember-scanner)\n\nember-scanner\n==============================================================================\n\nQR code and barcode scanner for Ember based on [@zxing/library](https://github.com/zxing-js/library). ([Demo](https://evocount.github.io/ember-scanner/))\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-scanner\n```\n\n\nUsage\n------------------------------------------------------------------------------\n\n```hbs\n\u003cCodeScanner\n  @onScanSuccess={{fn (mut this.result)}}\n/\u003e\n\nResult: {{this.result.text}}\n```\n\nor\n\n```hbs\n\u003cCodeScanner\n  @device={{this.camera}}\n  @onScanSuccess={{fn this.onScanSuccess}}\n  @onScanError={{fn this.onScanError}}\n  @onDevicesFound={{fn this.onCamerasFound}}\n  @onDevicesError={{fn this.onCamerasError}}\n/\u003e\n```\n\n* `device`: Id of video-device (camera) to use for scanning (use one of the devices reported by `onDevicesFound` or `undefined` for automatic selection)\n* `onScanSuccess`: Reports scan results as object after valid code was scanned. Decoded message is in `text`\n* `onScanError`: In case error occurs during scanning\n* `onDevicesFound`: Reports list of available devices/cameras as objects with fields `label`, `deviceId`\n* `onDevicesError`: In case scan for devices fails\n\nContributing\n------------------------------------------------------------------------------\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevocount%2Fember-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevocount%2Fember-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevocount%2Fember-scanner/lists"}