cheery / node-udev

Bindings to libudev
35 stars 31 forks source link

Add tag matching to monitor #44

Closed AntoninRousset closed 1 year ago

AntoninRousset commented 1 year ago

Add the feature to filter devices by tag while monitoring:

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

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