mini-code
v1.0.1
Published
Barcode and QRCode for miniprogram and miniprogram plugin.
Downloads
3
Maintainers
Readme
mini-code
Barcode and QRCode for miniprogram plugin.
Install
Install with npm:
$ npm install --save mini-code
Usages
var QRCode = require('mini-code').QRCode
QRCode.draw({
canvas: '', //canvas context
code: '', //code
width: 300, //qrcode width
height: 300,
iconImg: '', // icon url. @optional
iconWidth: 60, //icon width. @optional
iconHeight: 60,
},
{//@optional. draw qrcode with scale animation.
duration: 300,
scale: 0.8
})
var BarCode = require('mini-code').BarCode
BarCode.draw({
canvas: '',//canvas context
code: '',//code
width: '',//barcode width
height: '',//barcode height
vertical: false //show barcode in vertical case.
})