All Projects → VKCOM → vk-qr

VKCOM / vk-qr

Licence: MIT license
VK QR Code generator library

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vk-qr

nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (-34.88%)
Mutual labels:  qrcode, qr-code, qr-generator, qr
wifiqr
Create a QR code with your Wi-Fi login details
Stars: ✭ 207 (+381.4%)
Mutual labels:  qrcode, qr-generator, qr
paper-store
Cold store small files on paper as QR codes -- PGP keys, Bitcoin keys, Tox keys or any other small files in general.
Stars: ✭ 28 (-34.88%)
Mutual labels:  qrcode, qr-code, qr
Jsqr
A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.
Stars: ✭ 2,722 (+6230.23%)
Mutual labels:  qrcode, qr-code, qr
quagga2-reader-qr
Quagga2 sample external reader for QR codes
Stars: ✭ 20 (-53.49%)
Mutual labels:  qrcode, qr-code, qr
Awesome Qr.js
An awesome QR code generator written in JavaScript.
Stars: ✭ 1,247 (+2800%)
Mutual labels:  qrcode, qr-code, qr
qrcode
A flutter plugin for scanning QR codes. Use AVCaptureSession in iOS and zxing in Android.
Stars: ✭ 69 (+60.47%)
Mutual labels:  qrcode, qr-code, qr
Qr Code Generator
High-quality QR Code generator library in Java, TypeScript/JavaScript, Python, Rust, C++, C.
Stars: ✭ 2,363 (+5395.35%)
Mutual labels:  qr-code, qr-generator, qr
Qr Ascii
A small library to generate QR codes with ascii
Stars: ✭ 63 (+46.51%)
Mutual labels:  qrcode, qr-code, qr
Qr Code Scanner
📠 A simple, fast and useful progressive web application
Stars: ✭ 982 (+2183.72%)
Mutual labels:  qrcode, qr-code, qr
Qr Code
Web Component for generating QR codes
Stars: ✭ 425 (+888.37%)
Mutual labels:  qrcode, qr-code, qr
Awesomeqrcode
An awesome QR code generator for Android.
Stars: ✭ 1,718 (+3895.35%)
Mutual labels:  qrcode, qr-code, qr-generator
Qrbtf
An art QR code (qrcode) beautifier. 艺术二维码生成器。https://qrbtf.com
Stars: ✭ 1,391 (+3134.88%)
Mutual labels:  qrcode, qr-code, qr
React Qr Svg
React component for rendering SVG QR codes
Stars: ✭ 134 (+211.63%)
Mutual labels:  qrcode, qr-code, qr
Bardecoder
Detect and decode QR Codes, written in 100% Rust.
Stars: ✭ 145 (+237.21%)
Mutual labels:  qrcode, qr-code
Segno
Python QR Code and Micro QR Code encoder
Stars: ✭ 144 (+234.88%)
Mutual labels:  qrcode, qr-code
Qr Code Bundle
Bundle for generating QR codes in Symfony
Stars: ✭ 169 (+293.02%)
Mutual labels:  qrcode, qr
Zxinglite
🔥 ZXing的精简版,优化扫码和生成二维码/条形码,内置闪光灯等功能。扫描风格支持:微信的线条样式,支付宝的网格样式。几句代码轻松拥有扫码功能 ,ZXingLite让集成更简单。(扫码识别速度快如微信)
Stars: ✭ 2,117 (+4823.26%)
Mutual labels:  qrcode, qr-code
Qrcode Library
Create QrCodes with ease
Stars: ✭ 184 (+327.91%)
Mutual labels:  qrcode, qr
Offline Qr Code
📱 Browser add-on allowing you to quickly generate a QR code offline with the URL of the open tab or other text!
Stars: ✭ 193 (+348.84%)
Mutual labels:  qrcode, qr-code

npm NPM Build Status

VK-QR

JavaScript library for generating SVG code of VK-style QR codes.

Usage

Install via yarn

yarn add @vkontakte/vk-qr

or npm

npm install @vkontakte/vk-qr

And use in your code

import vkQr from '@vkontakte/vk-qr';

// Returns SVG code of generated 256x256 QR code with VK logo
const qrSvg = vkQr.createQR('Text to encode', {
  qrSize: 256,
  isShowLogo: true
});

API Reference

Syntax

generatedSvgCode = vkQr.createQR(text[, qrOptions]);

Parameters

  • text required String to generate a QR code

  • options optional An options object containing any custom settings that you want to apply to the generated QR code. The possible options are:

    • qrSize: Size of QR code. Default is 128

    • className: Class name of root SVG element

    • isShowLogo: Show VK logo in center of QR code Default is false

    • isShowBackground: Show QR background. Default is false

    • backgroundColor: QR code background HEX color. Works if isShowBackground is enabled. Default is "#ffffff"

    • foregroundColor: QR code HEX color

    • logoColor: Color of logo. Default is "#4680c2"

    • logoData: Reference to logo as a reference IRI

    • suffix: SVG elements id postfix

    • ecc: ECC level in range [0-3] (0 - low, 3 - high)

Return value

A string with SVG code.

License

The code is available under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].