rqrr-wasm
An npm module that use rqrr
compiled to wasm to use easily in your webpack project.
Instructions
- Install the module with its peer dependencies
yarn add rqrr-wasm memory-fs fs-extra
- Add the webpack plugin to your webpack configuration
; // webpack configuration filewebpackConfig = plugins: // other plugins // put this last
- Import the module in your code
;
- Call
init()
to load the .wasm file, then you candecode
a QR code by passing anUint8Array
of the image data
wasmModule;
Example
An example of how to use this can be seen in this repo https://github.com/jackyef/rqrr-wasm