zxinger

0.0.3 • Public • Published

ZXinger

An ESM ready QR code scanner along with a nice web component you can drop in anywhere. This is a fork and cleanup of the ZXing library to make it work as an ESM module.

We will keep trying to modernize this library to ESM standards and we do accept pull requests, so please contribute if you can.

Quickstart

The easiest way is to use the web component.

# TODO
<script type="module">
import 'https://cdn.jsdelivr.net/gh/chainparency/zxinger@0/components/zxinger-scanner.js'

document.querySelector("zxinger").addEventListener("change", (e) => console.log("result:", e.detail.value))
document.querySelector("#scanButton").addEventListener("click", () => document.querySelector("#zxinger").open())
</script>

<zxinger-scanner id="zxinger"></zxinger-scanner>
<button id="scanButton"></button>

Readme

Keywords

Package Sidebar

Install

npm i zxinger

Weekly Downloads

1

Version

0.0.3

License

Apache-2.0

Unpacked Size

1.46 MB

Total Files

231

Last publish

Collaborators

  • treeder