fixed-mount-barcode-scanner
An npm module to easily obtain the barcode read by a fixed mount usb barcode scanner of the company Newland (c).
This is designed to be integrated on a frontend, where you expect a barcode scanner input.
Install the module
Import it to your project with the following command:
npm install fixed-mount-barcode-scanner
Or if you prefer yarn to npm install:
yarn add fixed-mount-barcode-scanner
Integrate it in your project
It can be integrated in your code like this:
; // This will start listening to the 'keydown' event of the document object.bscanner; // This defines the callback const onBarcode = { console; // Enter your code here to react to a barcode scan event.}; // With this line, your callback will be invoked every time a barcode has been scannedbscanner;
Credits
Developed by F. Javier R. Donado for netvico GmbH