Projects
View on GitHub
Rich-Harris/headless-qr
About
A simple, modern QR code library
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalheadless-qr
A simple, modern QR code generator. Adapted from https://github.com/kazuhikoarase/qrcode-generator but without all the junk that was necessary 10 years ago.
Usage
import { qr } from 'headless-qr';
// generate an n x n array of booleans,
// where `true` is a dark pixel
const modules = qr('https://example.com');
// specify version and error correction
const modules = qr('https://example.com', {
version: 40, // 1 - 40, will select the best version if unspecified
correction: 'Q' // L, M, Q or H
});
Explore related projects
Loading…