# headless-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.

Latest version **1.0.3** (published 2023-04-18) · 0 weekly downloads

## Install

```sh
npm install headless-qr
pnpm add headless-qr
yarn add headless-qr
bun add headless-qr
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2023-04-18 |
| First published | 2023-04-18 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 25.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 466 |
| Maintainers | rich_harris |

## Links

- npm: https://www.npmjs.com/package/headless-qr
- Repository: https://github.com/Rich-Harris/headless-qr
- Homepage: https://github.com/Rich-Harris/headless-qr#readme
- Issues: https://github.com/Rich-Harris/headless-qr/issues
- npm.io page: https://npm.io/package/headless-qr

## Recent versions

- 1.0.3 (latest) — 2023-04-18
- 1.0.2 — 2023-04-18
- 1.0.1 — 2023-04-18
- 1.0.0 — 2023-04-18

## README

# headless-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

```js
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
});
```

---
_Source: https://npm.io/package/headless-qr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
