Skip to content

schakko/node-usb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libusb-1.0 bindings for Node.js
==============================
node-usb is just a sample of how to interact between node.js ->  Google V8 -> external libraries (in this case libusb-1.0).
At the moment only discovering of availble devices is possible and no asynchronous support is integrated.

Tested with Node version 0.2.4

Installation
==============================
Make sure you have installed libusb-1.0-0-dev (Ubuntu: sudo apt-get install libusb-1.0-0-dev).

Just run
	make
in current directory and wait. "Unit tests" are automatically executed by default target.

You can although execute the tests by typing:
	node tests/node-usb-test.js

If you want to use the USB vendor ids, execute
	make create-usb-ids

For creating debug output you have to compile node-usb with
	make debug
or
	node-waf clean configure --debug=true build


Examples
=============================
A simple version of lsusb can be executed by typing
	node examples/lsusb.js

More information
==============================
Christopher Klein <ckl[at]ecw[dot]de>
http://twitter.com/schakko
http://wap.ecw.de

About

node.js bindings for libusb-1.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages