ark-qr

1.0.3 • Public • Published

ark-html-qr

This is my convenient library extended from html5-qrcode. for easy scanning and with better and easy UI (at least for me)

Live Demo

https://ark-html-qr.immanuel.co/ark-wrap.html

Install

<script src="/dist/ark-html5code.js"></script>

<script src="https://cdn.jsdelivr.net/npm/ark-qr@latest/ark-html5code.js></script>

Getting Started

ark_qr({
    dom: <dom where the scan icon should appear>,
    camera: 'list', //list -> lists the devices, <deviceid>
    log: false, // log window appears to trace the logs
    onscan: (d) => {

    },
    onerror: e => {

    }
})

Screen shots

Scanner Image

Scanning Image

Features

  • [x] Custom camera Icon
  • [x] Mobile first

TO DOs

  • [ ] extend config

Developer

Immanuel - immanuel.co

Package Sidebar

Install

npm i ark-qr

Weekly Downloads

3

Version

1.0.3

License

none

Unpacked Size

26.6 kB

Total Files

3

Last publish

Collaborators

  • jimmanuel