Socket
Socket
Sign inDemoInstall

vue-qrcode-reader

Package Overview
Dependencies
1
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-qrcode-reader

A Vue.js component, accessing the device camera and allowing users to read QR-Codes, within the browser


Version published
Maintainers
1
Created

Readme

Source

vue-qrcode-reader

npm npm vue2

A Vue.js component, accessing the device camera and allowing users to read QR-Codes, within the browser

Table of contents

Installation

npm install --save vue-qrcode-reader

Default import

Install all the components:

import Vue from 'vue'
import VueQrcodeReader from 'vue-qrcode-reader'

Vue.use(VueQrcodeReader)

Use specific components:

import Vue from 'vue'
import { QrcodeReader } from 'vue-qrcode-reader'

Vue.component('qrcode-reader', QrcodeReader)

⚠️ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.

Distribution import

Install all the components:

import 'vue-qrcode-reader/dist/vue-qrcode-reader.css'
import VueQrcodeReader from 'vue-qrcode-reader/dist/vue-qrcode-reader.common'

Vue.use(VueQrcodeReader)

Use specific components:

import 'vue-qrcode-reader/dist/vue-qrcode-reader.css'
import { Test } from 'vue-qrcode-reader/dist/vue-qrcode-reader.common'

Vue.component('test', Test)

⚠️ You may have to setup your bundler to embed the css file in your page.

Browser

<link rel="stylesheet" href="vue-qrcode-reader/dist/vue-qrcode-reader.css"/>

<script src="vue.js"></script>
<script src="vue-qrcode-reader/dist/vue-qrcode-reader.browser.js"></script>

The plugin should be auto-installed. If not, you can install it manually with the instructions below.

Install all the components:

Vue.use(VueQrcodeReader)

Use specific components:

Vue.component('qrcode-reader', VueQrcodeReader.QrcodeReader)

Source import

Install all the components:

import Vue from 'vue'
import VueQrcodeReader from 'vue-qrcode-reader/src'

Vue.use(VueQrcodeReader)

Use specific components:

import Vue from 'vue'
import { QrcodeReader } from 'vue-qrcode-reader/src'

Vue.component('qrcode-reader', QrcodeReader)

⚠️ You need to configure your bundler to compile .vue files. More info in the official documentation.

Usage

TODO

Example

TODO


License

MIT

Keywords

FAQs

Last updated on 19 Aug 2017

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc