@arzyu/parse-qr-code
v0.1.1
Published
Parse QR code in Node.js
Downloads
6
Readme
@arzyu/parse-qr-code
Parse QR code in Node.js.
Installation
npm add @arzyu/parse-qr-code
Usage
import { parseQRCode } from '@arzyu/parse-qr-code';
(async () => {
const filepath = "/path/to/qrcode/image.png";
try {
const qrText = await parseQRCode(filepath);
if (qrText.length) {
console.log(qrText);
}
} catch (e) {
console.error(e);
}
})();