{"_id":"@digital-h/zxing-library","_rev":"3-4d1a3f3a8c8d395ba7c50e5fe6caa16b","name":"@digital-h/zxing-library","dist-tags":{"latest":"0.21.2"},"versions":{"0.21.2":{"name":"@digital-h/zxing-library","version":"0.21.2","keywords":["reader","writer","decode","encode","scanner","generator","barcode","qr-code","barcode 1d","barcode 2d","typescript","zxing"],"license":"MIT","_id":"@digital-h/zxing-library@0.21.2","homepage":"https://digital-h-gmbh.github.io/zxing-js-library/","bugs":{"url":"https://github.com/digital-h-gmbh/zxing-js-library/issues/new"},"dist":{"shasum":"58f58b03ff6fd84059c0b2a8c994e8c40295301b","tarball":"https://registry.npmjs.org/@digital-h/zxing-library/-/zxing-library-0.21.2.tgz","fileCount":1346,"integrity":"sha512-WPVqM6iAh87aKFIH41qFOFeysZhaxBwfbaYQv2y8z4TpgrqnYZCEcZBCBg/JV6uHt6De279dyFoqXMwDWDgPaA==","signatures":[{"sig":"MEUCIQCYTEiDnXs/U2M+LG9Acut1RTC3BlDbqeyJ69UrX9A3pQIgAmiHkgcEAZF431lDqj6/Wue2kRiiacRBlwt6FHHfO0E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9456906},"main":"./cjs/index.js","_from":"file:pack-artifact/package.tgz","unpkg":"./umd/index.min.js","esnext":"./es2015/index.js","module":"./esm/index.js","authors":[{"name":"Adrian Toșcă"},{"name":"David Werth","email":"werth.david@gmail.com"},{"name":"Luiz Barni","email":"machado@odahcam.com"}],"engines":{"node":">= 10.4.0"},"private":false,"scripts":{"shx":"shx","tsc":"tsc","lint":"yarn tslint --project .","test":"yarn test:build && yarn test:run","build":"yarn clean && yarn build:es2015 && yarn build:esm && yarn build:esnext && yarn build:cjs && yarn build:umd && yarn build:umd:min && yarn build:copy","clean":"yarn shx rm -rf dist output","cover":"nyc --reporter=lcov --reporter=text yarn test","tslint":"tslint \"./src/**/*.ts\"","test:run":"mocha -r tsconfig-paths/register --timeout 200000 output/tests/**/*.spec.js","build:cjs":"tsc --build tsconfig.lib-cjs.json","build:esm":"tsc --build tsconfig.lib-esm.json","build:umd":"rollup -c rollup.config.js","build:copy":"cp README.md dist && cp package.json dist && cp LICENSE dist","test:build":"tsc --build tsconfig.test.json","build:es2015":"tsc --build tsconfig.lib-es2015.json","build:esnext":"tsc --build tsconfig.lib-esm.json","build:umd:min":"cd dist/umd && terser --compress --mangle --source-map --screw-ie8 --comments -o index.min.js -- index.js && gzip index.min.js -c > index.min.js.gz"},"typings":"./esm/index.d.ts","_npmUser":{"name":"digital-h-gmbh","email":"a.popko@digital-h.de"},"_resolved":"/home/runner/work/zxing-js-library/zxing-js-library/pack-artifact/package.tgz","_integrity":"sha512-WPVqM6iAh87aKFIH41qFOFeysZhaxBwfbaYQv2y8z4TpgrqnYZCEcZBCBg/JV6uHt6De279dyFoqXMwDWDgPaA==","collective":{"url":"https://opencollective.com/zxing-js","logo":"https://opencollective.com/zxing-js/logo.txt","type":"opencollective"},"repository":{"url":"git+https://github.com/digital-h-gmbh/zxing-js-library.git","type":"git"},"_npmVersion":"10.7.0","description":"TypeScript port of ZXing multi-format 1D/2D barcode image processing library.","directories":{},"_nodeVersion":"18.20.3","dependencies":{"ts-custom-error":"^3.2.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","shx":"0.3.4","chai":"^4.2.0","yarn":"^1.17.3","karma":"^6.3.16","mocha":"^6.2.3","sharp":"^0.32.6","sinon":"^7.2.7","eslint":"^5.15.1","rollup":"^2.8.2","terser":"^5.16.1","tslint":"^6.1.3","ts-node":"^9.0.0","karma-chai":"^0.1.0","seedrandom":"^2.4.4","typescript":"^3","@types/chai":"^4.1.7","@types/node":"^10.12.29","karma-mocha":"^1.3.0","karma-sinon":"^1.0.5","@types/mocha":"^5.2.6","@types/sharp":"^0.22.2","karma-coverage":"^1.1.2","tsconfig-paths":"^3.9.0","codacy-coverage":"^3.4.0","karma-typescript":"^3.0.13","@types/seedrandom":"^2.4.27","mocha-lcov-reporter":"^1.3.0","@zxing/text-encoding":"~0.9.0","karma-remap-coverage":"^0.1.5","karma-chrome-launcher":"^2.2.0","karma-sourcemap-loader":"^0.3.7","tslint-no-circular-imports":"^0.7.0","@rollup/plugin-node-resolve":"^7.1.3","karma-typescript-preprocessor":"^0.4.0"},"optionalDependencies":{"@zxing/text-encoding":"~0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/zxing-library_0.21.2_1719824988820_0.6606485711725996","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-07-01T09:09:48.703Z","modified":"2024-10-18T07:08:51.535Z","0.21.2":"2024-07-01T09:09:49.091Z"},"bugs":{"url":"https://github.com/digital-h-gmbh/zxing-js-library/issues/new"},"license":"MIT","homepage":"https://digital-h-gmbh.github.io/zxing-js-library/","keywords":["reader","writer","decode","encode","scanner","generator","barcode","qr-code","barcode 1d","barcode 2d","typescript","zxing"],"repository":{"url":"git+https://github.com/digital-h-gmbh/zxing-js-library.git","type":"git"},"description":"TypeScript port of ZXing multi-format 1D/2D barcode image processing library.","maintainers":[{"email":"h.hofmann@digital-h.de","name":"hanne.hofmann.digital-h"},{"email":"a.popko@digital-h.de","name":"digital-h-gmbh"},{"email":"d.schoepf@digital-h.de","name":"dschoepf"},{"email":"s.hansen@digital-h.de","name":"simonhansen"},{"email":"l.weiss@digital-h.de","name":"lauraweiss"}],"readme":"[<img align=\"right\" src=\"https://raw.github.com/wiki/zxing/zxing/zxing-logo.png\"/>][1]\n\n# ZXing\n\n## Project in Maintenance Mode Only\n\nThe project is in maintenance mode, meaning, changes are driven by contributed patches.\nOnly bug fixes and minor enhancements will be considered. The Barcode Scanner app can\nno longer be published, so it's unlikely any changes will be accepted for it.\nThere is otherwise no active development or roadmap for this project. It is \"DIY\".\n\n### Runs on your favorite ECMAScript ecosystem\n\n> If it doesn't, we gonna make it.\n\n## What is ZXing?\n\n> [ZXing][1] (\"zebra crossing\") is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.\n\n## Supported Formats\n\n> See [Projects](https://github.com/zxing-js/library/projects) and [Milestones](https://github.com/zxing-js/library/milestones) for what is currently done and what's planned next. 👀\n\n| 1D product | 1D industrial                        | 2D           |\n| ---------- |--------------------------------------|--------------|\n| UPC-A      | Code 39                              | QR Code      |\n| UPC-E      | Code 93                              | Data Matrix  |\n| EAN-8      | Code 128                             | Aztec        |\n| EAN-13     | Codabar                              | PDF 417      |\n|            | ITF                                  | ~~MaxiCode~~ |\n|            | RSS-14                               |              |\n|            | RSS-Expanded (not production ready!) |              |\n\n\n## Status\n\n[![Maintainer wanted](https://img.shields.io/badge/maintained-help%20wanted-red)](https://npmjs.org/package/@zxing/ngx-scanner)\n[![Greenkeeper badge](https://badges.greenkeeper.io/zxing-js/library.svg)](https://greenkeeper.io/)\n\n[![NPM version](https://img.shields.io/npm/v/@zxing/library.svg?&label=npm)][0]\n[![npm](https://img.shields.io/npm/dm/localeval.svg)][0]\n[![Contributors](https://img.shields.io/github/contributors/zxing-js/library.svg)](https://github.com/zxing-js/library/graphs/contributors)\n[![Commits to deploy](https://img.shields.io/github/commits-since/zxing-js/library/master.svg?label=commits%20to%20deploy)](https://github.com/zxing-js/library/compare/master...develop)\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/2b9c6ae92412ee8e15a9/maintainability)](https://codeclimate.com/github/zxing-js/library/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/2b9c6ae92412ee8e15a9/test_coverage)](https://codeclimate.com/github/zxing-js/library/test_coverage)\n\n### Attention\n\n>NOTE: While we do not have the time to actively maintain zxing-js anymore, we are open to new maintainers taking the lead.\n\n## Demo\n\nSee [Live Preview](https://zxing-js.github.io/library/) in browser.\n\n**Note:** All the examples are using ES6, be sure is supported in your browser or modify as needed, Chrome recommended.\n\n## Installation\n\n`npm i @zxing/library --save`\n\nor\n\n`yarn add @zxing/library`\n\n## Limitations\n\nOn iOS-Devices **with iOS < 14.3** camera access works only in native Safari and not in other Browsers (Chrome,...) or Apps that use an UIWebView or WKWebView. This is not a restriction of this library but of the limited WebRTC support by Apple. The behavior might change in iOS 11.3 (Apr 2018?, not tested) as stated [here](https://developer.apple.com/library/content/releasenotes/General/WhatsNewInSafari/Articles/Safari_11_1.html#//apple_ref/doc/uid/TP40014305-CH14-SW1)\n\n> iOS 14.3 (released in december 2020) now supports WebRTC in 3rd party browsers as well 🎉 \n\n### Browser Support\n\nThe browser layer is using the [MediaDevices](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices) web API which is not supported by older browsers.\n\n_You can use external polyfills like [WebRTC adapter](https://github.com/webrtc/adapter) to increase browser compatibility._\n\nAlso, note that the library is using the [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) (`Int32Array`, `Uint8ClampedArray`, etc.) which are not available in older browsers (e.g. Android 4 default browser).\n\n_You can use [core-js](https://github.com/zloirock/core-js) to add support to these browsers._\n\nIn the PDF 417 decoder recent addition, the library now makes use of the new `BigInt` type, which [is not supported by all browsers][2] as well. There's no way to polyfill that and ponyfill libraries are **way to big**, but even if PDF 417 decoding relies on `BigInt` the rest of the library shall work ok in browsers that doesn't support it.\n\n_There's no polyfills for `BigInt` in the way it's coded in here._\n\n## Usage\n\n```javascript\n// use with commonJS\nconst { MultiFormatReader, BarcodeFormat } = require('@zxing/library');\n// or with ES6 modules\nimport { MultiFormatReader, BarcodeFormat } from '@zxing/library';\n\nconst hints = new Map();\nconst formats = [BarcodeFormat.QR_CODE, BarcodeFormat.DATA_MATRIX/*, ...*/];\n\nhints.set(DecodeHintType.POSSIBLE_FORMATS, formats);\n\nconst reader = new MultiFormatReader();\n\nconst luminanceSource = new RGBLuminanceSource(imgByteArray, imgWidth, imgHeight);\nconst binaryBitmap = new BinaryBitmap(new HybridBinarizer(luminanceSource));\n\nreader.decode(binaryBitmap, hints);\n```\n\n## Contributing\n\nSee [Contributing Guide](https://github.com/zxing-js/library/blob/master/CONTRIBUTING.md) for information regarding porting approach and reasoning behind some of the approaches taken.\n\n## Contributors\n\nSpecial thanks to all the contributors who have contributed for this project. We heartly thankful to you all.\n\n[![](https://sourcerer.io/fame/odahcam/zxing-js/library/images/0)](https://sourcerer.io/fame/odahcam/zxing-js/library/links/0)[![](https://sourcerer.io/fame/odahcam/zxing-js/library/images/1)](https://sourcerer.io/fame/odahcam/zxing-js/library/links/1)[![](https://sourcerer.io/fame/odahcam/zxing-js/library/images/2)](https://sourcerer.io/fame/odahcam/zxing-js/library/links/2)[![](https://sourcerer.io/fame/odahcam/zxing-js/library/images/3)](https://sourcerer.io/fame/odahcam/zxing-js/library/links/3)[![](https://sourcerer.io/fame/odahcam/zxing-js/library/images/4)](https://sourcerer.io/fame/odahcam/zxing-js/library/links/4)[![](https://sourcerer.io/fame/odahcam/zxing-js/library/images/5)](https://sourcerer.io/fame/odahcam/zxing-js/library/links/5)[![](https://sourcerer.io/fame/odahcam/zxing-js/library/images/6)](https://sourcerer.io/fame/odahcam/zxing-js/library/links/6)[![](https://sourcerer.io/fame/odahcam/zxing-js/library/images/7)](https://sourcerer.io/fame/odahcam/zxing-js/library/links/7)\n\nAnd a special thanks to [@aleris][3] who created the project itself and made available the initial QR code port.\n\n---\n\n[![Bless](https://cdn.rawgit.com/LunaGao/BlessYourCodeTag/master/tags/alpaca.svg)](http://lunagao.github.io/BlessYourCodeTag/)\n\n[0]: https://www.npmjs.com/package/@zxing/library\n[1]: https://github.com/zxing/zxing\n[2]: https://caniuse.com/#feat=bigint\n[3]: https://github.com/aleris\n","readmeFilename":"README.md"}