Socket
Socket
Sign inDemoInstall

qrcode-npm

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    qrcode-npm

QRCode Generator for JavaScript


Version published
Weekly downloads
4.6K
increased by38.4%
Maintainers
1
Install size
40.6 kB
Created
Weekly downloads
 

Readme

Source

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')

var qr = qrCode.qrcode(4, 'M');
qr.addData(text);
qr.make();

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

install

npm install qrcode-npm

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

Keywords

FAQs

Last updated on 19 Jul 2012

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc