Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 11 07:23
    RicoBrase opened #90
  • Oct 09 08:01
    orangeChu commented #89
  • Oct 08 03:39
    MadLittleMods labeled #89
  • Oct 08 03:39
    MadLittleMods labeled #89
  • Oct 08 03:39
    MadLittleMods unlabeled #89
  • Oct 08 02:24
    nononoone commented #89
  • Oct 08 02:07
    orangeChu commented #89
  • Oct 08 01:56
    MadLittleMods edited #89
  • Oct 08 01:56
    MadLittleMods labeled #89
  • Oct 08 01:55
    MadLittleMods commented #89
  • Oct 07 07:44
    orangeChu edited #89
  • Oct 07 05:38
    orangeChu opened #89
  • Oct 06 23:07
    MadLittleMods commented #84
  • Oct 06 23:04

    MadLittleMods on v4.5.0

    (compare)

  • Oct 06 23:03

    MadLittleMods on master

    4.5.0 (compare)

  • Oct 06 23:02

    MadLittleMods on master

    Prepare changelog with #84 (compare)

  • Oct 06 22:54

    MadLittleMods on master

    Unbind ATL lib on Windows (#84)… (compare)

  • Oct 06 22:54
    MadLittleMods closed #84
  • Oct 06 22:48
    MadLittleMods commented #34
  • Oct 06 22:47
    MadLittleMods commented #86
Eric Eastwood
@MadLittleMods
I'll publish a release after they go up and test
Alex Van Camp
@Lange
yeah i can see the build progress
i'm not currently working on any projects with node-usb-detection but I will be by June at the latest
and potentially earlier
Eric Eastwood
@MadLittleMods
Me either but it's been broken for too long
Alex Van Camp
@Lange
ye
I have a codebase that's used heavily exactly twice a year
and it uses node-usb-detection
next event is late June, we start dev probably late May
and i'm also working on a side project which will use node-usb-detection but it's on the backburner until we get some new hires onboarded to help me not lose my mind spinning too many plates at once
Eric Eastwood
@MadLittleMods
Stay sane buddy! Most of the builds are done and it just worked great on Windows :rocket:
Alex Van Camp
@Lange
nice, i'll try out an install real quick
toally works :+1:
lgtm for publish
i will be very grateful for all this in a few months
will make my CI and deployment workflows much easier
and also make it easier for people who just want to check out the project, without them needing to install a full compiler toolchain
Eric Eastwood
@MadLittleMods

Thanks again for your work on the prebuilt binaries!

https://www.npmjs.com/package/usb-detection 2.1.0 published :elephant:

Alex Van Camp
@Lange
which was extra hard for node-usb-detection, because the default installation of windows-build-tools doesn't have everything needed for node-usb-detection to compile
so getting people up and running with it was pretty hard
nice, grats on the publish
Eric Eastwood
@MadLittleMods
Ye, native modules are painful but this is sooo slick :snake:
Alex Van Camp
@Lange
fwiw, might want to link to this or copy some of it in the readme, idk felixrieseberg/windows-build-tools#59
i actually re-found this issue like 6 months after i opened it, and I had no memory of opening it
but i had clearly struggled with this before lol
Eric Eastwood
@MadLittleMods
@Lange Could add it under this section, https://github.com/MadLittleMods/node-usb-detection#windows - Feel free to submit a PR
Alex Van Camp
@Lange
yeah i might throw it in there
Lalit Kumar
@lalitmee
hello guys..
I need a help
I am trying to use node-usb-detection in electron desktop application.. but when I am running webpack, it is showing some warning.. I have tried a lot but no luck.. please help me..
Actually I am using React.js in electron for which I have to run webpack. So these are the warnings https://github.com/MadLittleMods/node-usb-detection/issues/25#issuecomment-368014008
Eric Eastwood
@MadLittleMods
@lalitmee Please create a separate issue instead glomming onto a slightly related issue. Please include which version of npm, webpack, etc you are using so people can better try to reproduce
Lalit Kumar
@lalitmee
okk
I will
Rio Del S. Pamaong
@riodel27
Hello, I just want to make a suggestion regarding the usb-detection https://www.npmjs.com/package/usb-detection. I just think that i'd be great if the absolute path of where the device is being added and removed will be helpful. Because you can have a multiple device connected with the same vid, pid and it will be hard to identify which one was removed. I don't know if adding that feature will be possible. Thanks
Eric Eastwood
@MadLittleMods
@riodel27 It seems like you are after MadLittleMods/node-usb-detection#19
Rio Del S. Pamaong
@riodel27
@MadLittleMods I'm not quite sure. But basically I just think that I'd be great if absolute path is included as one of the data coming back from the call back function after executing usbDetect.on(add or remove) . ex: / Console output:
{
locationId: 0,
vendorId: 5824,
productId: 1155,
deviceName: 'Teensy USB Serial (COM3)',
manufacturer: 'PJRC.COM, LLC.',
serialNumber: '',
deviceAddress: 11,
}
/
/ Console output:
{
locationId: 0,
vendorId: 5824,
productId: 1155,
deviceName: 'Teensy USB Serial (COM3)',
manufacturer: 'PJRC.COM, LLC.',
serialNumber: '',
deviceAddress: 11,
absolutePath: ?? /
absolute path here / ex: path: '\\?\hid#vid_093a&pid_2510#6&838b31&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}',
}
/
Eric Eastwood
@MadLittleMods
@riodel27 I think MadLittleMods/node-usb-detection#19 covers your case. You can also track MadLittleMods/node-usb-detection#51 which has the path
Eric Eastwood
@MadLittleMods
v3.0.3 just published to npm :tada:
  • Can now distinguish and show duplicate USB devices on Windows
  • Dependencies updated
gdetra
@gdetra
Hi guys, i have a question for you. I'm using ubuntu 17.10 and i'm trying to install usb detection but i receive "error parsing json" or something similar. Can you help me?
Eric Eastwood
@MadLittleMods
@gdetra Can you paste the full error? (npm install output)
gdetra
@gdetra
npm ERR! registry error parsing json
gdetra
@gdetra
now i have tried and all goes well!! i don't know if you have done something. I have another question. How can i use this library on Linux, Windows and MacOS without any problem? I have to install only dependencies?
Eric Eastwood
@MadLittleMods

@gdetra I can not reproduce on Windows 10, macOS 10.12.6, or Ubuntu 18.04. I didn't do anything to fix it but glad it's working for you now

Just install it. usb-detection works across all platforms without any external dependencies. We even have pre-built binaries that magically install so you don't need Node.js native module build dependencies

gdetra
@gdetra
I'll try on windows and share with you the result.
Thank you for now @MadLittleMods !!
gdetra
@gdetra

This error is shown on Windows:

C:\Users\Gabriele\Desktop\UsbDetection>node app.js
C:\Users\Gabriele\Desktop\UsbDetection\node_modules\bindings\bindings.js:88
throw e
^

Error: \?\C:\Users\Gabriele\Desktop\UsbDetection\node_modules\usb-detection\build\Release\detection.node non è un'applicazione di Win32 valida.
\?\C:\Users\Gabriele\Desktop\UsbDetection\node_modules\usb-detection\build\Release\detection.node
at Object.Module._extensions..node (module.js:681:18)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at bindings (C:\Users\Gabriele\Desktop\UsbDetection\node_modules\bindings\bindings.js:81:44)
at Object.<anonymous> (C:\Users\Gabriele\Desktop\UsbDetection\node_modules\usb-detection\index.js:10:37)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Users\Gabriele\Desktop\UsbDetection\app.js:1:79)

Eric Eastwood
@MadLittleMods

@gdetra I'm not sure and that is a localized error so I am not sure exactly what it says. It sounds like it is complaining it not being a valid win32 application.

Are you using usb-detection in electron?

See MadLittleMods/node-usb-detection#58