Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
canvas-qrcode-logo
Advanced tools
Readme
Generate QRcode with logo, only support Canvas.
new QRCode(dom, options)
npm i canvas-qrcode-logo
const QRCode = require('canvas-qrcode-logo');
new QRCode(document.getElementById("qrcode"), {
logo: './logo.png',
text: "https://www.xiaoboy.com",
width: 128,
height: 128
});
<script src="../qrcode.min.js"></script>
<div id="qrcode"></div>
<script type="text/javascript">
new QRCode.default(document.getElementById("qrcode"), {
logo: './logo.png',
text: "https://www.xiaoboy.com",
width: 128,
height: 128
});
</script>
width
{Number}
QRCode's widthheight
{Number}
QRCode's heighttypeNumber
{Number}
colorDark
{String}
default: #000000
colorLight``{String}
default: #ffffff
,correctLevel
{String}
L | M | Q | H, default: H
logo
{String}
logo's url,padding
{Number}
white space, default: 5size
{Number}
logo's width and height, default: 30FAQs
Generate QRcode with logo, only support Canvas.
The npm package canvas-qrcode-logo receives a total of 10 weekly downloads. As such, canvas-qrcode-logo popularity was classified as not popular.
We found that canvas-qrcode-logo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.