Web API pentru accesarea dispozitivelor USB prin JavaScript

https://wicg.github.io/webusb/
Specificatiile api-ului


Exemplu de folosire a api-ului

Api-ul este disponibil si pt Firefox

De mentionat ca trebuie, ca pagina sa foloseasca https.

3 Likes

Daca dati click pe Promises din paragraful

The WebUSB API relies heavily on JavaScript Promises. If you’re not familiar with them, check out this great Promises tutorial. One more thing, () => {} are simply ECMAScript 2015 Arrow functions – they have a shorter syntax compared to function expressions and lexically bind the value of this.

duce la Mozilla Developer Networks