Socket
Socket
Sign inDemoInstall

usb

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

usb - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

test.js

2

package.json

@@ -22,3 +22,3 @@ {

],
"version": "0.2.0",
"version": "0.2.1",
"engines": {

@@ -25,0 +25,0 @@ "node": ">=0.8.x"

@@ -41,3 +41,3 @@ USB Library for Node.JS

### usb.getDevices()
### usb.getDeviceList()
Return a list of `Device` objects for the USB devices attached to the system.

@@ -271,5 +271,5 @@

git clone https://github.com/nonolith/node-usb.git
cd node-usb
npm install
git clone https://github.com/nonolith/node-usb.git
cd node-usb
npm install

@@ -276,0 +276,0 @@ To execute the unit tests, [CoffeeScript](http://coffeescript.org) is required. Run

@@ -113,3 +113,3 @@ var usb = exports = module.exports = require("bindings")("usb_bindings")

var desc = this.descriptor.endpoints[i]
var c = (desc.bEndpointAddress&(1 << 7) == usb.LIBUSB_ENDPOINT_IN)?InEndpoint:OutEndpoint
var c = (desc.bEndpointAddress&usb.LIBUSB_ENDPOINT_IN)?InEndpoint:OutEndpoint
this.endpoints[i] = new c(this.device, desc)

@@ -116,0 +116,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc