1.0.1 • Published 6 months ago
tiny-qrcode-svg v1.0.1
tiny-qrcode-svg
Who is it for?
Anybody who wants to generate a QR code either server side or client side without too much bloat. The library comes in at around 7kb uncompressed. It is based off https://www.nayuki.io/page/qr-code-generator-library, and comes bundled with a minified version of that library.
Installing
# Choose your poison...
bun i tiny-qrcode-svg
npm i tiny-qrcode-svg
yarn add tiny-qrcode-svg
Usage
The following would produce the QR-code below:
import makeSvg from "tiny-qrcode-svg";
const svg = makeSvg("Hello, World", {
color: "#000",
size: 300,
});