@arzyu/parse-qr-code
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@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);
  }

})();

Readme

Keywords

none

Package Sidebar

Install

npm i @arzyu/parse-qr-code

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

1.85 kB

Total Files

4

Last publish

Collaborators

  • arzyu