santigimeno / node-pcsclite

Bindings over pcsclite to access Smart Cards
ISC License
170 stars 127 forks source link

How do you list all readers, including internal ones? #77

Closed uniquehash closed 6 years ago

uniquehash commented 7 years ago

E.g. readers that are "never inserted" and therefore are not detected by on("reader").

martinpaljak commented 7 years ago

in PC/SC terms such readers do not exist. A reader event is emitted during initial enumeration, thus you get a list of all usable smart card readers.

uniquehash commented 7 years ago

Thank you - to that effect, we ended up exposing readers in lib/pcsclite.js:34, as by the time we can attach a listener to on(“reader”) the initial reader(s) have already been enumerated. PR may follow soon.

santigimeno commented 6 years ago

https://github.com/santigimeno/node-pcsclite/pull/78 already landed