Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

qrcode-js

CloudService2.3k0.0.2

Generate qr code for string data

qrcode

readme

qrcode-js

This is a node.js wrapper for the qrcode JavaScript library (http://www.d-project.com/qrcode)

Install

npm install qrcode-js

Example

var qrcode=require('qrcode-js');
var url = 'http://www.sunzhongkui.me';
var base64 = qrcode.toDataURL(url, 4);