Skip to content

amourfrei/mini-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
})

About

Barcode and QRCode for miniprogram plugin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published