@nordicid/nurapi-node
v0.9.9
Published
NUR RFID Reader API — Node.js transports (serialport, TCP socket)
Maintainers
Readme
@nordicid/nurapi-node
Node.js transports for the @nordicid/nurapi library — serial port and TCP socket.
Install
npm install @nordicid/nurapi @nordicid/nurapi-nodeQuick Start
Import the package to register ser:// and tcp:// URI schemes automatically:
import '@nordicid/nurapi-node';
import { NurApi } from '@nordicid/nurapi';
const reader = new NurApi();
await reader.connect('ser:///dev/ttyUSB0'); // Linux serial
// await reader.connect('ser://COM3'); // Windows serial
// await reader.connect('tcp://192.168.1.100'); // TCP (default port 4333)Transport Registration
| Scheme | Transport | Discovery |
|---|---|---|
| ser:// | Serial port (serialport) | USB VID/PID enumeration |
| tcp:// | TCP socket (net.Socket) | mDNS (_nur._tcp.local) |
Dependencies
| Package | Purpose |
|---|---|
| serialport (≥13.0) | Serial port I/O and enumeration |
| multicast-dns (≥7.2) | mDNS device discovery for TCP readers |
Node.js 18.17+ required.
Documentation
See the full API reference and guides at nordicid.github.io/nur_nurapi_typescript.
License
See LICENSE.
