quirc-wasm-emcc
Quirc wasm module compiled using Emscripten written in C programming language.
Last updated a year ago by argaghulamahmad .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install quirc-wasm-emcc 
SYNC missed versions from official npm registry.

Quirc-JpegLib WASM

Wasm Module (compiled using Emscripten) to decode qr code image based on quirc and jpeglib.

Size of the WASM module

The size of the raw WASM module is 250 KB, the gzipped version is 74 KB. The Javascript glue code size is 24 KB, the gzipped version is 7.4 KB.

How to install on your Node JS Application?

Install the package and peer dependencies using your favorite Node Js package manager.

yarn add quirc-wasm-emcc memory-fs fs-extra

Add the webpack plugin to your webpack configuration

const QuircWasmPclugin = require('quirc-wasm-emcc/dist/webpack-plugins');

webpackConfig = {
  plugins: [
    // other plugins
    new QuircWasmPclugin(), // put this last
  ],
}

Import the function.

import {decodeQrCode} from "quirc-wasm-emcc";

Take the jpeg blob, read that blob as array buffer, and pass that array buffer to decodeQrCode function.

canvas.toBlob(blob => {
    const reader = new FileReader();
    reader.addEventListener("loadend", () => {
        const arrayBuffer = reader.result;
        const result = decodeQrCode(arrayBuffer);
        console.log(result);
    });
    reader.readAsArrayBuffer(blob);
}, 'image/jpeg');import {decodeQrCode} from "quirc-wasm-emcc";

Current Tags

  • 1.0.26                                ...           latest (a year ago)

27 Versions

  • 1.0.26                                ...           a year ago
  • 1.0.25                                ...           a year ago
  • 1.0.24                                ...           a year ago
  • 1.0.23                                ...           a year ago
  • 1.0.22                                ...           a year ago
  • 1.0.21                                ...           a year ago
  • 1.0.20                                ...           a year ago
  • 1.0.19                                ...           a year ago
  • 1.0.18                                ...           a year ago
  • 1.0.17                                ...           a year ago
  • 1.0.16                                ...           a year ago
  • 1.0.15                                ...           a year ago
  • 1.0.14                                ...           a year ago
  • 1.0.13                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.11                                ...           a year ago
  • 1.0.10                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 28
Dependencies (0)
None
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |