UNPKG

qrcode-parser

Version:

A pure javascript QR code decoding library, accept File object, image url, image base64.

40 lines (25 loc) 1.37 kB
# qrcode-parser [![NPM version](https://img.shields.io/npm/v/qrcode-parser.svg?style=flat)](https://npmjs.com/package/qrcode-parser) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/qrcode-parser) [![NPM downloads](https://img.shields.io/npm/dm/qrcode-parser.svg?style=flat)](https://npmjs.com/package/qrcode-parser) ![Test](https://github.com/sinchang//qrcode-parser/actions/workflows/playwright.yml/badge.svg) A pure javascript QR code decoding library, accept File object, image url, image base64. ## Example 👉 [DEMO](https://qrcode-parser.netlify.com) ## Install ```bash yarn add qrcode-parser ``` ## Usage ```js import qrcodeParser from "qrcode-parser"; qrcodeParser(input); // => return promise ``` ## Contributing 1. Fork it! 2. Create your feature branch: `git checkout -b my-new-feature` 3. Commit your changes: `git commit -am 'Add some feature'` 4. Push to the branch: `git push origin my-new-feature` 5. Submit a pull request :D ## Author **qrcode-parser** © [sinchang](https://github.com/sinchang), Released under the [MIT](./LICENSE) License.<br> Authored and maintained by sinchang with help from contributors ([list](https://github.com/sinchang/qrcode-parser/contributors)). > [sinchang.me](https://sinchang.me) · GitHub [@sinchang](https://github.com/sinchang) · Twitter [@sinchangwen](https://twitter.com/sinchangwen)