@roastedduck/membaca
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Membaca

Table of Contents

About

Membaca is a Vue 3 component library to scan QR code and read the content. It uses zxingjs/browser to scan the QR code.

Getting Started

To use this library, you can install it via npm or yarn.

npm install @roastedduk/membaca

Usage

<script setup lang="ts">
const deviceId = ref<string>('')

onMounted(() => {
  const mediaDevices = await navigator.mediaDevices.getUserMedia({ video: true })
  deviceId.value = mediaDevices[0].id
})
</script>

<template>
  <QrCamera
    :device-id="deviceId"
    @result="handleResult"
    @error="handleError"
  />
</template>

Package Sidebar

Install

npm i @roastedduck/membaca

Weekly Downloads

5

Version

0.0.2

License

MIT

Unpacked Size

1.06 MB

Total Files

7

Last publish

Collaborators

  • angeloanan
  • roastedduck