🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

qrcode-base64

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qrcode-base64

Generating the QR code in the form of Base64

1.0.1
latest
Source
npm
Version published
Weekly downloads
2.2K
36.3%
Maintainers
1
Weekly downloads
 
Created
Source

qrcode-base64

Generating the QR code in the form of Base64
微信小程序生成二维码的插件,基于base64编码输出二维码,不依赖canvas,理论支持全平台

PS: 主要在node-yaqrcode项目基础上进行改造适应微信小程序

说明

使用NPM

npm install qrcode-base64

JS调用例子:

    import QR from 'qrcode-base64'

    var imgData = QR.drawImg(this.data.codeText, {
      typeNumber: 4,
      errorCorrectLevel: 'M',
      size: 500
    })
    // 返回输出base64编码imgData

DEMO示例图

demo-img

TODO

  • 更多配置项,灵活多样
  • 样式自定义化,增加更丰富的样式

Keywords

qrcode-base64

FAQs

Package last updated on 18 Nov 2020

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