{"id":23456428,"url":"https://github.com/kunder-lab/kunder-plugin-barcode-scanner","last_synced_at":"2025-10-14T12:11:46.669Z","repository":{"id":93466442,"uuid":"46002220","full_name":"kunder-lab/kunder-plugin-barcode-scanner","owner":"kunder-lab","description":"Cordova Plugin: Barcode Scanner (fork from wildabeast/BarcodeScanner)","archived":false,"fork":false,"pushed_at":"2015-11-11T18:52:05.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T09:12:28.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/kunder-lab.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":"2015-11-11T18:46:23.000Z","updated_at":"2015-11-11T18:52:07.000Z","dependencies_parsed_at":"2023-03-11T17:46:13.642Z","dependency_job_id":null,"html_url":"https://github.com/kunder-lab/kunder-plugin-barcode-scanner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kunder-lab/kunder-plugin-barcode-scanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunder-lab%2Fkunder-plugin-barcode-scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunder-lab%2Fkunder-plugin-barcode-scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunder-lab%2Fkunder-plugin-barcode-scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunder-lab%2Fkunder-plugin-barcode-scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kunder-lab","download_url":"https://codeload.github.com/kunder-lab/kunder-plugin-barcode-scanner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kunder-lab%2Fkunder-plugin-barcode-scanner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019413,"owners_count":26086575,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2024-12-24T04:31:22.324Z","updated_at":"2025-10-14T12:11:46.653Z","avatar_url":"https://github.com/kunder-lab.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Fork from https://github.com/wildabeast/BarcodeScanner\n\nFixes some bugs of the original plugin\n\nBarcodeScanner\n==============\n\nCross-platform BarcodeScanner for Cordova / PhoneGap.\n\nFollows the [Cordova Plugin spec](http://cordova.apache.org/docs/en/3.0.0/plugin_ref_spec.md), so that it works with [Plugman](https://github.com/apache/cordova-plugman).\n\n### Supported Platforms\n\n- Android\n- iOS\n- Windows 8\n- Windows Phone 8\n\nNote: the Android source for this project includes an Android Library Project.\nplugman currently doesn't support Library Project refs, so its been\nprebuilt as a jar library. Any updates to the Library Project should be\ncommitted with an updated jar.\n\n## Using the plugin ##\nThe plugin creates the object `cordova/plugin/BarcodeScanner` with the method `scan(success, fail)`. \n\nThe following barcode types are currently supported:\n### Android\n\n* QR_CODE\n* DATA_MATRIX\n* UPC_E\n* UPC_A\n* EAN_8\n* EAN_13\n* CODE_128\n* CODE_39\n* CODE_93\n* CODABAR\n* ITF\n* RSS14\n* PDF417\n* RSS_EXPANDED\n\n### iOS\n\n* QR_CODE\n* DATA_MATRIX\n* UPC_E\n* UPC_A\n* EAN_8\n* EAN_13\n* CODE_128\n* CODE_39\n* ITF\n\n### Windows8\n\n* UPC_A\n* UPC_E\n* EAN_8\n* EAN_13\n* CODE_39\n* CODE_93\n* CODE_128\n* ITF\n* CODABAR\n* MSI\n* RSS14\n* QR_CODE\n* DATA_MATRIX\n* AZTEC\n* PDF417\n\n### Windows Phone 8\n\n* UPC_A\n* UPC_E\n* EAN_8\n* EAN_13\n* CODE_39\n* CODE_93\n* CODE_128\n* ITF\n* CODABAR\n* MSI\n* RSS14\n* QR_CODE\n* DATA_MATRIX\n* AZTEC\n* PDF417\n\n`success` and `fail` are callback functions. Success is passed an object with data, type and cancelled properties. Data is the text representation of the barcode data, type is the type of barcode detected and cancelled is whether or not the user cancelled the scan.\n\nA full example could be:\n```\n   cordova.plugins.barcodeScanner.scan(\n      function (result) {\n          alert(\"We got a barcode\\n\" +\n                \"Result: \" + result.text + \"\\n\" +\n                \"Format: \" + result.format + \"\\n\" +\n                \"Cancelled: \" + result.cancelled);\n      }, \n      function (error) {\n          alert(\"Scanning failed: \" + error);\n      }\n   );\n```\n\n## Encoding a Barcode ##\n\nThe plugin creates the object `cordova.plugins.barcodeScanner` with the method `encode(type, data, success, fail)`. \n\nSupported encoding types:\n\n* TEXT_TYPE\n* EMAIL_TYPE\n* PHONE_TYPE\n* SMS_TYPE\n\n```\nA full example could be:\n\n   cordova.plugins.barcodeScanner.encode(cordova.plugins.barcodeScanner.Encode.TEXT_TYPE, \"http://www.nytimes.com\", function(success) {\n            alert(\"encode success: \" + success);\n          }, function(fail) {\n            alert(\"encoding failed: \" + fail);\n          }\n        );\n```\n\n## Windows8 quirks ##\nWindows 8 implenemtation currently doesn't support encode functionality.\n\n## Windows Phone 8 quirks ##\nWindows Phone 8 implenemtation currently doesn't support encode functionality.\n\n## Thanks on Github ##\n\nSo many -- check out the original [iOS](https://github.com/phonegap/phonegap-plugins/tree/DEPRECATED/iOS/BarcodeScanner) and [Android](https://github.com/phonegap/phonegap-plugins/tree/DEPRECATED/Android/BarcodeScanner) repos.\n\n\n## Licence ##\n\nThe MIT License\n\nCopyright (c) 2010 Matt Kane\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%2Fkunder-lab%2Fkunder-plugin-barcode-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkunder-lab%2Fkunder-plugin-barcode-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkunder-lab%2Fkunder-plugin-barcode-scanner/lists"}