0.0.100 • Published 2 years ago

@solid-integrations/qrcode-generator v0.0.100

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@solid-integrations/qrcode-generator

turborepo size version stage

An integration with qrcode-generator for generating qr code data URLs:

Installation

npm install @solid-integrations/qrcode-generator
# or
yarn add @solid-integrations/qrcode-generator
# or
pnpm add @solid-integrations/qrcode-generator

How to use it

makeQRCode

Synchronously generates a data URL for a QR Code containing the given string

const qrCode = makeQRCode("Hello World");

createQRCode

Returns a memo with the data URL for a QR Code

const [str, setStr] = createSignal("");
const qrCode = createQRCode(str); //The value of qrCode will reactively update when `str` changes.

Changelog

See CHANGELOG.md

0.0.100

2 years ago