Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mathewparet/vue-qr-reader

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mathewparet/vue-qr-reader

A VueJS compoenent (Modal) that integrates with @mathewparet/instascan to read qr code.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

@mathewparet/vue-qr-reader

A VueJS compoenent (Modal) that integrates with @mathewparet/instascan to read qr code.

Installation

npm install @mathewparet/vue-qr-reader

Global Import

import QrReader from '@mathewparet/vue-qr-reader';
Vue.use(QrReader);

Import in local scope

import QrReader from '@mathewparet/vue-qr-reader';
export default {
    components: {
        QrReader
    }
}

Attributes

NameTypeRequiredDefaultDescription
scan-periodNumberNo5The frame rate at which QR has to be captured
titleStringNo'Read QR Code'Title of the QR Reader Modal window

Usage

<template>
    <qr-reader title="Scan Code" ref="reader" @scan="scanned"/>
    <a class="btn btn-secondaru" @click="scan">Scan</a>
</template>
<script>
    export default {
        methods: {
            scanned(data)
            {
                console.log(data); // has the scanned raw data
                this.$refs.reader.hide(); // hide the reader so no more QRs are scanned
            },
            scan()
            {
                this.$refs.reader.show();
            }
        }
    }
</script>

Events

scan

This event is called when a QR is read.

cameraNotFound

This event is called if no camera is detected.

error

This event is called for any error that occurs.

FAQs

Package last updated on 11 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc