mikerovers / usb-barcode-scanner

A typed library for using USB barcode scanners in Node.js with support for Typescript
https://www.npmjs.com/package/usb-barcode-scanner
MIT License
26 stars 26 forks source link

Data is missing certain special characters #1

Closed aaroncadrian closed 5 years ago

aaroncadrian commented 5 years ago

Whenever I scan a PDF417 barcode such as V=1,EID=12345, I get V1EID12345 from the data callback. This issue occurs regardless of the barcode scanner device that I use.

These characters do show up whenever I use the scanner as a normal HID device outside of Node.js, such as in Microsoft Word.

Special characters such as , = [ and ] are missing from the Default HID map.

aaroncadrian commented 5 years ago

2 - I created a pull request where more characters were added to the default HID map.

mikerovers commented 5 years ago

Sorry for the late response. Looks good, thank you!