node-rdm6300
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

node-rdm6300

nodejs RDM6300 125khz RFID lib

Prerequisites

  • A 125KHz RFID RDM6300 module
  • An USB TTL adapter

Installation

install this package from npm

npm install node-rdm6300

Usage

// use import
// import Rdm6300 from 'node-rdm6300';
// use require
const Rdm6300 = require('node-rdm6300').default;
const rdm = new Rdm6300({ path: '/dev/tty.usbserial-0001' });
rdm.on('cardIn', (cardId) => {console.log('card in', cardId);});
rdm.on('cardOut', () => {console.log('card out');});
rdm.on('open', () => {console.log('serialport open');});
rdm.on('error', (e) => {console.log('serialport error', e);});

Document

https://chnbohwr.github.io/node-rdm6300/classes/Rdm6300.html

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i node-rdm6300

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

272 kB

Total Files

32

Last publish

Collaborators

  • chnbohwr