@paulmillr/qr@0.4.2Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
paulmillr/qrAuditable, 0-dependency, cross-platform QR Code Pattern encoder & decoder.
This package works with Node.js, Deno, Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers




JSR Score
88%
Published
4 days ago (0.4.2)
Methods for encoding (generating) QR code patterns. Check out decode.ts for decoding (reading).
Example 1
Example 1
import encodeQR from '@paulmillr/qr'; const txt = 'Hello world'; const ascii = encodeQR(txt, 'ascii'); // Not all fonts are supported const terminalFriendly = encodeQR(txt, 'term'); // 2x larger, all fonts are OK const gifBytes = encodeQR(txt, 'gif'); // Uncompressed GIF const svgElement = encodeQR(txt, 'svg'); // SVG vector image element const array = encodeQR(txt, 'raw'); // 2d array for canvas or other libs // import decodeQR from '@paulmillr/qr/decode';
Built and signed on
GitHub Actions
Add Package
deno add jsr:@paulmillr/qr
Import symbol
import * as qr from "@paulmillr/qr";
Import directly with a jsr specifier
import * as qr from "jsr:@paulmillr/qr";
Add Package
pnpm i jsr:@paulmillr/qr
pnpm dlx jsr add @paulmillr/qr
Import symbol
import * as qr from "@paulmillr/qr";
Add Package
yarn add jsr:@paulmillr/qr
yarn dlx jsr add @paulmillr/qr
Import symbol
import * as qr from "@paulmillr/qr";
Add Package
npx jsr add @paulmillr/qr
Import symbol
import * as qr from "@paulmillr/qr";
Add Package
bunx jsr add @paulmillr/qr
Import symbol
import * as qr from "@paulmillr/qr";