{"id":22093480,"url":"https://github.com/mubaidr/javascript-barcode-reader","last_synced_at":"2025-04-04T16:13:08.628Z","repository":{"id":37686815,"uuid":"136870633","full_name":"mubaidr/Javascript-Barcode-Reader","owner":"mubaidr","description":"Simple and Fast Barcode decoder with support of Code128, Code93, Code39, Standard/Industrial 2 of 5, Interleaved 2 of 5, Codabar, EAN-13, EAN-8 barcodes in javascript.","archived":false,"fork":false,"pushed_at":"2024-08-22T12:16:31.000Z","size":7948,"stargazers_count":189,"open_issues_count":30,"forks_count":28,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-22T15:11:48.245Z","etag":null,"topics":["barcode","hacktoberfest","javascript","node","reader","scanner"],"latest_commit_sha":null,"homepage":"https://mubaidr.js.org/Javascript-Barcode-Reader/","language":"TypeScript","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/mubaidr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"mubaidr","patreon":"mubaidr","open_collective":"mubaidr","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":"mubaidr","otechie":null,"custom":null}},"created_at":"2018-06-11T03:36:04.000Z","updated_at":"2024-08-08T05:19:19.000Z","dependencies_parsed_at":"2024-01-29T08:09:48.814Z","dependency_job_id":"317307f2-1a77-4157-b6f1-a915e26c5f68","html_url":"https://github.com/mubaidr/Javascript-Barcode-Reader","commit_stats":{"total_commits":562,"total_committers":10,"mean_commits":56.2,"dds":0.6459074733096085,"last_synced_commit":"6509de87eccd1653fa3d93cb5300573b7d384d52"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubaidr%2FJavascript-Barcode-Reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubaidr%2FJavascript-Barcode-Reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubaidr%2FJavascript-Barcode-Reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubaidr%2FJavascript-Barcode-Reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mubaidr","download_url":"https://codeload.github.com/mubaidr/Javascript-Barcode-Reader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208139,"owners_count":20901570,"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","hacktoberfest","javascript","node","reader","scanner"],"created_at":"2024-12-01T03:14:47.219Z","updated_at":"2025-04-04T16:13:08.612Z","avatar_url":"https://github.com/mubaidr.png","language":"TypeScript","readme":"# Javascript-Barcode-Reader\n\nSimple \u0026 Fast Barcode decoder for Browsers and Node.js capapable of reading Code128 (UCC/EAN-128), Code93, Code39, Standard/Industrial 2 of 5, Interleaved 2 of 5, Codabar and EAN-13 barcodes.\n\n[![Build Status](https://travis-ci.org/mubaidr/Javascript-Barcode-Reader.svg?branch=master)](https://travis-ci.org/mubaidr/Javascript-Barcode-Reader)\n[![codebeat badge](https://codebeat.co/badges/8f27170b-909e-489f-ae93-459664c47422)](https://codebeat.co/projects/github-com-mubaidr-javascript-barcode-reader-master)\n[![codecov](https://codecov.io/gh/mubaidr/Javascript-Barcode-Reader/branch/master/graph/badge.svg)](https://codecov.io/gh/mubaidr/Javascript-Barcode-Reader)\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors)\n[![Rate on Openbase](https://badges.openbase.com/js/rating/javascript-barcode-reader.svg)](https://openbase.com/js/javascript-barcode-reader?utm_source=embedded\u0026utm_medium=badge\u0026utm_campaign=rate-badge)\n\n[![NPM](https://nodei.co/npm/javascript-barcode-reader.png)](https://nodei.co/npm/javascript-barcode-reader/)\n\n\u003ca href=\"https://patreon.com/mubaidr\"\u003e\n  \u003cimg src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" height=\"45\"\u003e\n\u003c/a\u003e\n\n## Try now\n\nhttps://codesandbox.io/s/javascript-barcode-reader-liium\n\n## Available decoders\n\n- EAN-13\n- EAN-8\n- Code-39\n- Code-93\n- Code-2of5\n  - standard\n  - Interleaved\n- Codabar\n- Code-128 (UCC/EAN-128)\n\n## How to use\n\n### Install\n\nRecommended way to install is by using package manager (npm, yarn etc):\n\n```bash\nnpm i javascript-barcode-reader\n```\n\nor use cdn:\n\n```html\n\u003cscript src=\"//unpkg.com/javascript-barcode-reader\"\u003e\u003c/script\u003e\n```\n\nor download manually:\n\n[javascript-barcode-reader](https://unpkg.com/javascript-barcode-reader)\n\n### Node.js\n\n```ts\nimport javascriptBarcodeReader from 'javascript-barcode-reader'\n\njavascriptBarcodeReader({\n  /* Image file Path || {data: Uint8ClampedArray, width, height} || HTML5 Canvas ImageData */\n  image: source,\n  barcode: 'code-2of5',\n  // barcodeType: 'industrial',\n  options: {    \n    // useAdaptiveThreshold: true // for images with shaded/ gradient portions\n    // singlePass: true\n  }\n})\n  .then(code =\u003e {\n    console.log(code)\n  })\n  .catch(err =\u003e {\n    console.log(err)\n  })\n```\n\n### Browser\n\n`javascriptBarcodeReader` will be available as global in Browsers.\n\n```js\njavascriptBarcodeReader({\n  /* Image ID || HTML5 Image || HTML5 Canvas || HTML5 Canvas ImageData || Image URL */\n  image: source,\n  barcode: 'code-2of5',\n  // barcodeType: 'industrial',\n  options: {\n    // useAdaptiveThreshold: true // for images with shaded/ gradient portions\n    // singlePass: true\n  }\n})\n  .then(code =\u003e {\n    console.log(code)\n  })\n  .catch(err =\u003e {\n    console.log(err)\n  })\n```\n\n## Note\n\n- This script does not implement logic to locate/rotate barcode in the given image.\n- Make sure the barcode image is the only thing in the image. Otherwise this script will most probably fail.\n\n## Contributing\n\n- Each decoder is defined in `src` directory as a module.\n- Tests are defined in the `tests` directory using `Jest`.\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n\u003ctable\u003e\u003ctr\u003e\u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/nitescuc\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/1108077?v=4\" width=\"100px;\" alt=\"Cristian Nitescu\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eCristian Nitescu\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/mubaidr/Javascript-Barcode-Reader/commits?author=nitescuc\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","funding_links":["https://github.com/sponsors/mubaidr","https://patreon.com/mubaidr","https://opencollective.com/mubaidr","https://issuehunt.io/r/mubaidr"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmubaidr%2Fjavascript-barcode-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmubaidr%2Fjavascript-barcode-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmubaidr%2Fjavascript-barcode-reader/lists"}