tiny-qr

Wasm-powered QR code image generator

Usage no npm install needed!

<script type="module">
  import tinyQr from 'https://cdn.skypack.dev/tiny-qr';
</script>

README

Wasm-powered QR code image generator

This library exposes two functions, typed accordingly:

// Encode binary data as PNG QR code
export function binary(data: Uint8Array): string | undefined;

// Encode string as PNG QR code
export function string(data: string): string | undefined;

The return value in both cases is a data URI string, ready to be used as a source for any image.