Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 30, 2024 via pnpm

qrcode 1.5.3

QRCode / 2d Barcode api with both server side and client side support using canvas
Package summary
Share
0
issues
2
licenses
23
MIT
7
ISC
Package created
21 Dec 2010
Version published
22 Apr 2023
Maintainers
2
Total deps
30
Direct deps
4
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
23 Packages, Including:
ansi-regex@5.0.1
ansi-styles@4.3.0
camelcase@5.3.1
color-convert@2.0.1
color-name@1.1.4
decamelize@1.2.0
dijkstrajs@1.0.3
emoji-regex@8.0.0
encode-utf8@1.0.3
find-up@4.1.0
is-fullwidth-code-point@3.0.0
locate-path@5.0.0
p-limit@2.3.0
p-locate@4.1.0
p-try@2.2.0
path-exists@4.0.0
pngjs@5.0.0
qrcode@1.5.3
require-directory@2.1.1
string-width@4.2.3
strip-ansi@6.0.1
wrap-ansi@6.2.0
yargs@15.4.1

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
cliui@6.0.0
get-caller-file@2.0.5
require-main-filename@2.0.0
set-blocking@2.0.0
which-module@2.0.1
y18n@4.0.3
yargs-parser@18.1.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of qrcode 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
dijkstrajs1.0.33.46 kBMIT
prod
encode-utf81.0.31.75 kBMIT
prod
pngjs5.0.0195.46 kBMIT
prod
yargs15.4.154.97 kBMIT
prod

Visualizations

Frequently Asked Questions

What does qrcode do?

QRCode is a powerful npm package that allows you to generate QR codes - 2D barcodes - that can be rendered on both the client and server sides using Node.js. It covers a plethora of options including support for numeric, alphanumeric, Kanji and Byte modes, mixed modes, and it even handles multibyte characters such as emojis. It supports error correction levels and QR code capacity with different symbol versions for optimal data compression and smallest QR code size.

How do you use qrcode?

To use QRCode in your JavaScript projects, you will first need to install it using npm with the following command:

npm install --save qrcode

After installation, you can start using it in your code. Here's an example of how you can generate a QR code using with QRCode:

var QRCode = require('qrcode')

QRCode.toDataURL('Your text here', function (err, url) {
  console.log(url)
})

If you want to work with Promises or async/await, QRCode supports them too. Here's how you can use it with async/await:

import QRCode from 'qrcode'

const generateQR = async text => {
  try {
    console.log(await QRCode.toDataURL(text))
  } catch (err) {
    console.error(err)
  }
}

generateQR('Your text here');

Where are the qrcode docs?

The comprehensive documentation for QRCode is included in the README file in the GitHub source code repository. The documentation covers several important topics including installation instructions, usage details, error correction levels, capacity of QR codes and encoding modes among others.