Lightweight SVG QR code generator in JavaScript, based on @kazuhikoarase's qrcode-generator.
The qr-svg
package is distributed as a module on npm.
yarn add qr-svg
# or
npm install --save qr-svg
import {QR} from 'qr-svg'
QR('hello') // <svg ...
You need Make, node.js and yarn installed.
Clone the repository and run make
to checkout all dependencies and build the project. See the Makefile for other useful targets. Before submitting a pull request make sure to run make lint
.