Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
qrcode-decoder
Advanced tools
简体中文 | English
A tool for decoding qrcode.
.
├── demo code demo
├── dist build output
├── doc docs
├── src source code
├── test unit test
├── CHANGELOG.md change log
└── TODO.md todo list
Use pnpm
to install.
$ pnpm install --save qrcode-decoder
Using in webpack:
import QrcodeDecoder from 'qrcode-decoder';
Using in browser:
<script src="https://unpkg.com/qrcode-decoder@0.3.1/dist/index.min.js"></script>
User new
to create a decoder object.
var qr = new QrcodeDecoder();
Decodes an image from url or an <img>
element with a src
attribute set.
qr.decodeFromImage(img).then((res) => {
console.log(res);
});
Decodes directly from a video with a well specified src
attribute
qr.decodeFromVideo(videoElement).then((res) => {
console.log(res);
});
Decodes from a videoElement.
qr.decodeFromCamera(videoElem).then((res) => {
console.log(res);
});
Stops the current qr
from searching for a QRCode.
Install dependencies:
$ pnpm install
Build code:
$ pnpm run build
Run unit test:
$ pnpm test
Modify version in package.json
, run release
script:
$ pnpm run release
Publish
$ pnpm publish
FAQs
Tool for decoding qrcode
The npm package qrcode-decoder receives a total of 4,542 weekly downloads. As such, qrcode-decoder popularity was classified as popular.
We found that qrcode-decoder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.