• Stars
    star
    183
  • Rank 210,154 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Node.js implementation of the WebUSB Specification
⚠️ This package is deprecated, please use the WebUSB API in the usb package instead ⚠️

Node WebUSB

Node.js implementation of the WebUSB Specification

Circle CI npm Licence MIT

Prerequisites

Node.js > v8.14.0, which includes npm.

Installation

$ npm install webusb

Getting Started

See the examples in examples or view the API documentation at:

https://thegecko.github.io/webusb/

Specification

The WebUSB specification can be found here:

https://wicg.github.io/webusb/

Implementation Status

USB

  • getDevices()
  • requestDevice()

USBDevice

  • usbVersionMajor
  • usbVersionMinor
  • usbVersionSubminor
  • deviceClass
  • deviceSubclass
  • deviceProtocol
  • vendorId
  • productId
  • deviceVersionMajor
  • deviceVersionMinor
  • deviceVersionSubminor
  • manufacturerName
  • productName
  • serialNumber
  • configuration
  • configurations
  • opened
  • open()
  • close()
  • selectConfiguration()
  • claimInterface()
  • releaseInterface()
  • selectAlternateInterface()
  • controlTransferIn()
  • controlTransferOut() - bytesWritten always equals the initial buffer length
  • transferIn()
  • transferOut() - bytesWritten always equals the initial buffer length
  • clearHalt()
  • reset()
  • isochronousTransferIn() - currently unsupported in node-usb
  • isochronousTransferOut() - currently unsupported in node-usb

Events

  • connect
  • disconnect

Other

  • USBDevice.url
  • Device selector hook
  • API Documentation
  • Examples

More Repositories

1

webbluetooth

Node.js implementation of the Web Bluetooth Specification
TypeScript
145
star
2

web-bluetooth-dfu

Device firmware update with Web Bluetooth
TypeScript
95
star
3

microbit-web-bluetooth

Web Bluetooth library for micro:bit
TypeScript
52
star
4

bleat

Abstraction library for hiding differences in JavaScript BLE APIs
JavaScript
48
star
5

webusb-web-extension

VS Code Web Extension demonstrating WebUSB access
TypeScript
16
star
6

microbit-web-components

Web Components library for micro:bit
TypeScript
16
star
7

react-native-ble

React Native module for Bluetooth Low Energy
Objective-C
12
star
8

hyperion

grpc messages over IPC or WebSockets using TypeScript
TypeScript
11
star
9

gulp-protobuf

A thin gulp wrapper around protobufjs pbjs and pbts tools
TypeScript
4
star
10

usb-mountpoint

TypeScript
4
star
11

vscode-theia-extension

TypeScript
4
star
12

mbed-js

C
2
star
13

wasm-flash

https://thegecko.github.io/wasm-flash/
HTML
2
star
14

showdown.js

A simple slideshow for markdown files using vanilla JS
JavaScript
2
star
15

protobuf-templates

TypeScript
2
star
16

bunnybot

MSN Messenger bot for controlling a nabaztag bunny
C#
1
star
17

webusb-agent

TypeScript
1
star
18

typescript-talk

https://thegecko.github.io/typescript-talk/
CSS
1
star
19

web-bluetooth-toolbox

A toolbox for working with BLE devices over Web Bluetooth
JavaScript
1
star
20

stlink-info

JavaScript
1
star
21

svd-viewer

Standalone SVD Viewer extension extracted from https://github.com/Marus/cortex-debug
TypeScript
1
star
22

llvm-box

C++
1
star
23

autosuggest.js

Standalone JavaScript library for suggesting and completing text in an input field following a template
JavaScript
1
star
24

vscode-findfiles

JavaScript
1
star
25

busybox-wasm

Shell
1
star