3.0.0 • Published 4 years ago
mqtt-match v3.0.0
mqtt-match
Match mqtt formatted topic strings to strings
Usage
const match = require('mqtt-match')
console.log(match('foo/+', 'foo/bar'))
// trueApi
match(filter, topic[, handleSharedSubscription])
filter(string) - mqtt filter topic, e.g.foo/+/bartopic(string) - topic string, e.g.foo/314/barhandleSharedSubscription(boolean) - set to true if handling$share/filter topics
License
MIT