We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Thanks for providing this source-code.
I'm a Node Newbie, and it is not 100% clear to me how to use your code.
So, can I kindly ask to add a small example please ? (e.g.: showing the eID card information via console.log)
That would be a great help !
Thanks in advance,
Johnny Driesen
The text was updated successfully, but these errors were encountered:
Hello, I'm in the same situation as @jdriesen , could you please provide a simple example. Many thanks.
Sorry, something went wrong.
First: require the lib in your project const eid = require('belgium-eid')
const eid = require('belgium-eid')
Next, create a reader const reader = eid()
const reader = eid()
Start listening to card inserts reader.on('card-inserted', card => { console.log(card) })
reader.on('card-inserted', card => { console.log(card) })
and add some error handling: reader.on('error', (reader, error) => { console.log(error) })
reader.on('error', (reader, error) => { console.log(error) })
Note that there is more data available on the card than is used in this library.
Thank you, Fabian.
No branches or pull requests
Hi,
Thanks for providing this source-code.
I'm a Node Newbie, and it is not 100% clear to me how to use your code.
So, can I kindly ask to add a small example please ?
(e.g.: showing the eID card information via console.log)
That would be a great help !
Thanks in advance,
Johnny Driesen
The text was updated successfully, but these errors were encountered: