13 lines
336 B
JavaScript
Executable File
13 lines
336 B
JavaScript
Executable File
'use strict';
|
|
|
|
const smartcard = require('../lib/index');
|
|
const Devices = smartcard.Devices;
|
|
const devices = new Devices();
|
|
|
|
|
|
devices.onActivated().then(event => {
|
|
console.log(`Device '${event.device}' activated`);
|
|
event.devices.map((device, index) => {
|
|
console.log(`Device #${index + 1}: '${device.name}'`);
|
|
});
|
|
}); |