Socket
Socket
Sign inDemoInstall

vue-barcode-scanner

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-barcode-scanner - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

package.json
{
"name": "vue-barcode-scanner",
"version": "0.0.4",
"version": "0.0.5",
"description": "Barcode Scanner Plugin for Vue.js",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -25,8 +25,7 @@ # Vue Barcode Scanner

```javascript
// inject with option (add sound)
// inject barcode scanner with option (add sound effect)
// sound will trigger when it's already scanned
// sound setting is false
let options = {
sound: true, // default is false
soundSrc : '/static/sound.wav'
soundSrc : '/static/sound.wav' // default is blank
}

@@ -43,3 +42,3 @@

```javascript
this.$barcodeScanner.init(this.onBarcodeScanned)
this.$barcodeScanner.init(callbackFunction)
```

@@ -55,3 +54,3 @@

## Usage
In your component file (.vue)
In your component file (.vue) just for the component you need to listener for barcode

@@ -62,3 +61,3 @@ ```javascript

// Add barcode scan listener and pass the callback function
this.$barcodeScanner.init(callbackFunction)
this.$barcodeScanner.init(this.onBarcodeScanned)
},

@@ -65,0 +64,0 @@ destroyed () {

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