Easy reading and writing NFC tags and cards in Node.js
ACR122Reader
class also for ACR1252U reader (has the same LED/Buzzer)
See diff with 0.8.0 here.
Finally added support for Node.js 11.x, 12.x and 13.x! 🚀
See diff with 0.7.4 here.
Upgraded dev dependencies 🔝 1c305c17775acc8ce2702fbfb638f8bc4ac0981f
Improved examples 👀 and reduced package size! 📦
Docs improvements and enhanced debug logging in Reader class! 🐛
A lot of improvements, many fixes and added support for Node.js 10.x and 11.x! 🎉
Many thanks to all of you who have posted an issue, opened a PR or contributed in any way! 🚀 Special thanks to @martijnthe for #55.
Buffer.from(str, 'hex')
instead. Part of changes related to better handling of AID.reader.loadAuthenticationKey(keyNumber, key)
dfa2efe9c007aabc627305fd532bc76faf20535e
Key can now be an instance of a Buffer, an array of bytes, or a HEX string.reader.read()
method to allow specifying the class (instead of the hard-coded 0xFF class)new Buffer
with Buffer.from
) ba4348bf54b2fb651beb2a21087cd78fb81d4f29Finally, next version after a half a year is here! More improvements coming soon! 🎉
reader.authenticate
(used for Mifare Classic cards authentication).
Credit goes to @foxxyz. Thank you very much, @foxxyz. 🙂Default export was removed to standardise require/import behaviour in ES5 and ES6 envs #12
You have to update all requires or imports of this library to the following (note the brackets around NFC):
// in ES6 environment
import { NFC } from 'nfc-pcsc';
// in ES2015 environment
const { NFC } = require('nfc-pcsc');
card.off
event (emitted when card is removed from the reader) (see in example in README) #15