JSPM

handled-rfid-reader-decoder

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q28799F
  • License GLP-3.0

Helps decode Handled rfid reader message in the DOM

Package Exports

  • handled-rfid-reader-decoder

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (handled-rfid-reader-decoder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

JS Handled RFID Reader Decoder

JS module which handles and decodes input keyboard event from an Handled RFID reader

It actually decodes :

  • Vanch VD-67E with Hexadecimal EPC configuration

Installation

  npm i handled-rfid-reader-decoder

or

 yarn add handled-rfid-reader-decoder

or download source directly from github

Usage

Import package

First import the package

const HandledRFIDReaderDecoder = require('handled-rfid-reader-decoder')

Bind keyboard input

Then use it as an handler of keyboard events, ex :

$("#field").keyDown(event => HandledRFIDReaderDecoder.onInput(event, onValidCallback))

Where:

  • event is the javascript event generated by the navigator
  • onValidCallback is a callback called only when the reader sends an enter key input

Clear current tag value

The tag value is not clear automatically when the reader sends an enter key input. But you can clear it manually with :

HandledRFIDReaderDecoder.clear();

Requests

Feel free to ask for request or to do pull request if you think you've improved the plugin

License

This piece of software is issued under the GNU GENERAL PUBLIC LICENSE. You can view the license here