New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

handled-rfid-reader-decoder

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handled-rfid-reader-decoder

Helps decode Handled rfid reader message in the DOM

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

RFID

FAQs

Package last updated on 10 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts