cheery / node-udev

Bindings to libudev
35 stars 31 forks source link

Add tag matching to list #45

Closed AntoninRousset closed 1 year ago

AntoninRousset commented 1 year ago

Add the feature to filter devices by tag when listing:

udev.list({ subsystems: ["input"], tags: ["power-switch"] });

This does not break the API, as calling list with a string will filter by the subsystem given as argument.