npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cordova-plugin-laser-scanner

v0.0.4

Published

Cordova Laser Barcode Scanner Plugin

Downloads

11

Readme

cordova-plugin-laser-scanner

Cordova Laser Scanner for Speedata Industrial PDA devices

思必拓(Speedata)手持终端激光扫描器的Cordova接口

Install 安装


cordova plugin add cordova-plugin-laser-scanner

Usages 用途

  1. Call scan 调用扫描头扫描
LaserScanner.scan(); 
// then the device will blink and read the barcode
// 此时设备会发出激光开始扫描二维码
  1. Receive scan result from device 从设备获取扫描结果

// when the barcode is decoded and result is returned by device
// both a window and document `barcodeReceived` event will be fired
// register a listener and you can get the data form `LaserScanner.result`

// 当二维码被解码完毕并且返回时
// 会触发 window 和 document 的 `barcodeReceived` 事件
// 监听这个事件并从`LaserScanner.result`中获取结果数据

window.addEventListener("barcodeReceived",function(){  //also document.addEventListener.....
    var result = LaserScanner.result;
    console.log("the result of this barcode is + " result);
},false)

Demo Guide 示例使用


cd demo

// will automatically install the plugins (based on config.xml)
// 将会根据config.xml自动安装
cordova platform add android

// build android application
// 编译打包apk文件
cordova build android

License

MIT