fuqr
v0.0.7
Published
feeling unemployed qr code generator
Downloads
101
Readme
fuqr
feeling unemployed qr codes
This is a web only package, built with wasm-pack build --target web
.
Use it with Vite using vite-plugin-wasm-pack
. See an example at zhengkyl/qrframe
.
You must run init()
at the beginning before using anything dependant on WASM code (generate
, QrOptions
, Version
).
import init, {
// These use WASM
generate,
QrOptions,
Version,
// These are enums
ECL,
Mask,
Mode,
QrError,
} from "fuqr";
Usage
const qrCode = generate("https://github.com/zhengkyl/fuqr", new QrOptions());
// Default values
const qrOptions = new QrOptions()
.min_version(new Version(1))
.strict_version(false)
.min_ecl(ECL.Low)
.strict_ecl(false)
.mask(null) // automatically determine best
.mode(null);// automatically determine best