New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

awesome-qr

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awesome-qr

An awesome QR code generator written in JavaScript.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.1K
increased by33.5%
Maintainers
1
Weekly downloads
 
Created
Source

Awesome-qr.js

An awesome(simple) QR code generator written in JavaScript.

一个优雅的(不起眼的) QR 二维码生成器

Introducing EFQRCode written in Swift

EFQRCode is a tool to generate QRCode image or recognize QRCode from image, in Swift.

Awesome-qr.js is inspired by EFQRCode by EyreFree.

If your application is in need of generating pretty QR codes in Swift, take a look at EFQRCode.

It should help.

AwesomeQRCode written for Android, 支持 Android 的 AwesomeQRCode

Redirect to AwesomeQRCode.

Vue 2.x Component for Awesome-qr.js

Take a look at Vue-qr by Binaryify.

Live demo, 演示网页

Take a look at the live demo.

Examples, 样例

Try to scan these QR codes below with your smart phone.

Example 1Example 2Example 3

Quick start, 快速上手

new AwesomeQRCode(
    {
        text: "Makito loves Kafuu Chino.",  // Contents to encode. 欲编码的内容
        width: 800,                         // Width, should equal to height. 宽度, 宽高应当一致
        height: 800,                        // Height, should equal to width. 高度, 宽高应当一致
        colorDark: "#000000",               // Color of blocks. Will be OVERRIDE by autoColor. 实点的颜色
        colorLight: "#FFFFFF",              // Color of empty space. Will be OVERRIDE by autoColor. 空白点的颜色
        correctLevel: AwesomeQRCode.CorrectLevel.H, 
        backgroundImage: backgroundImg,     // The background image to embed in the QR code. If undefined, no background image will be embedded. 欲嵌入的背景图
        autoColor: true                     // If true, colorDark will be set to the dominant color of backgroundImage. Default is true. 若为 true, 则将从背景图取主要颜色作为实点颜色
        binarize: false,                    // If true, background image will be binarized. Default is false.
        binarizeThreshold: 128              // Optional threshold for binarizing.
    }, 
    function(dataUrl) {
        $("#qrcode").attr("src", dataUrl);
    }
);

Would you like to buy me a cup of cappuccino? 要请我喝一杯卡布奇诺吗?

PayPalAlipay
PayPalAlipay

Copyright © 2017 Sumi Makito

Licensed under Apache License 2.0 License.

Copyright 2017 Sumi Makito

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Keywords

FAQs

Package last updated on 01 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc