
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
qrcode-anchor
Advanced tools
A pure javascript library that detect QR codes in an image-like source, and use the QR code as anchor to crop a region in the image.
A pure javascript library that detect QR codes in an image-like source, and use the QR code as anchor to locate a path in the image.

Before running it, try to use our Demo Web to experience how to anchor by QR Code.
Run the demo in Node.js
cd demo/nodejs
npm install
node index.js
<script src="https://cdn.jsdelivr.net/npm/qrcode-anchor@latest/dist/index.umd.js"></script>
<script>
QRCodeAnchor.scanCanvas(canvas, {
boxScaleIteration: 3, // scale down the scan window size to detect smaller QR Code.
boxOverlapRatio: 0.25, // scan window overlapped size.
codeCount: 6, // how many QR codes want to scan.
}).forEach(anchor => {
// draw the qrcode anchor on canvas (browser or node.js).
anchor.drawQRCode();
// location the target rectangle and draw the content in it.
// [0, 0] implies the top-left corner of QR Code,
// [1, 1] implies the bottom-right corner of QR Code, etc...,
// modify the coordinates to locate your target.
anchor.anchorRect([-0.4,-0.45], [1.5,-0.15]).draw();
})
</script>
npm install --save qrcode-anchor
import { scanCanvas } from 'qrcode-anchor';
scanCanvas(canvas, {
boxScaleIteration: 3, // scale down the scan window size to detect smaller QR Code.
boxOverlapRatio: 0.25, // scan window overlapped size.
codeCount: 6, // how many QR codes want to scan.
}).forEach(anchor => {
// draw the qrcode anchor on canvas (browser or node.js).
anchor.drawQRCode();
// location the target rectangle and draw the content in it.
// [0, 0] implies the top-left corner of QR Code,
// [1, 1] implies the bottom-right corner of QR Code, etc...,
// modify the coordinates to locate your target.
anchor.anchorRect([-0.4,-0.45], [1.5,-0.15]).draw();
})
FAQs
A pure javascript library that detect QR codes in an image-like source, and use the QR code as anchor to crop a region in the image.
We found that qrcode-anchor demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.