jskeyboardscan
v1.0.6
Published
a js lib for barcode scan based on keyboard input
Downloads
3
Readme
基于键盘输入模式的扫码,可以调用该库直接拿到扫码结果
安装
npm install jskeyboardscan --save
调用
import {scan,cancelScan} from 'jskeyboardscan'
注册扫码
scan((code)=>{ console.log('扫码结果:'+code) })
取消扫码
cancelScan()