1.0.0 • Published 6 months ago

tiny-qrcode-png v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
6 months ago

tiny-qrcode-png

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. It generates a monochrome 1-bit PNG.

Installing

# Pick your poison...
npm i tiny-qrcode-png
yarn add tiny-qrcode-png

Usage

The following would produce the QR-code below:

import makePng from "tiny-qrcode-png";

const png = makePng("Hello, World");

Example PNG

1.0.0

6 months ago