# ts-qrcode

> Pure TypeScript QRCode generator, for browser use.

Latest version **0.0.4** (published 2020-01-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install ts-qrcode
pnpm add ts-qrcode
yarn add ts-qrcode
bun add ts-qrcode
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2020-01-23 |
| First published | 2020-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 70.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | sasanquaneuf |
| Maintainers | sasanquaneuf |

## Links

- npm: https://www.npmjs.com/package/ts-qrcode
- Repository: https://github.com/sasanquaneuf/ts-qrcode
- Homepage: https://github.com/sasanquaneuf/ts-qrcode#readme
- Issues: https://github.com/sasanquaneuf/ts-qrcode/issues
- npm.io page: https://npm.io/package/ts-qrcode

## Recent versions

- 0.0.4 (latest) — 2020-01-23
- 0.0.3 — 2020-01-21
- 0.0.2 — 2020-01-20
- 0.0.1 — 2020-01-20

## README

# ts-qrcode

Pure TypeScript QRCode generator, for browser use.

# usage

```
npm install ts-qrcode
```

and import QRCode. Or, add script tag for qrcode.min.js.
Then, you can generate qrcode as follows:

```
QRCode.setCanvas('id-of-target-element', { text: 'qrcode-text' });
```

where first argument is the id of target element.
Look at the [sample/index.html](https://sasanquaneuf.github.io/ts-qrcode/sample/index.html) for more information.


# License

MIT

# Note

This code was written with reference to [jquery.qrcode.js](https://github.com/jeromeetienne/jquery-qrcode).
(Especially, qrcode.js as know as "QRCode for JavaScript", Copyright (c) 2009 Kazuhiko Arase)

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