Match mqtt formatted topic strings to strings
npm install mqtt-match> Match mqtt formatted topic strings to strings

!Node version


``js`
const match = require('mqtt-match')
console.log(match('foo/+', 'foo/bar'))
// true
* 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