0.0.5 • Published 6 years ago

qrcode-cn v0.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

qrcode-cn支持中文的二维码生成库

根据qrcode-npm修改而来,支持中文

This is an npm module for qrcode JavaScript library (http://www.d-project.com/qrcode)

Notice that I am not the author of the code, I am just simply creating an npm module out of the great library from Kazuhiko Arase Notice also that there is another module (node-qrcode, see: https://github.com/soldair/node-qrcode), which is more sophisticated and uses canvas object:

  • qrcode-npm uses img or table tags, which is more friendly to older browsers
  • if you know your target browser is canvas capable then I recommend using node-qrcode module

examples

var qrCode = require('qrcode-cn')

var qr = qrCode.qrcode(4, 'M');
qr.addData('这里是二维码的内容');
qr.make();

qr.createImgTag(4);    // creates an <img> tag as text
qr.createTableTag(4);  // creates a <table> tag as text

install

npm install qrcode-cn

The word "QR Code" is registered trademark of DENSO WAVE INCORPORATED

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago