/mqtt-match

Match mqtt formatted topic strings

Primary LanguageJavaScript

mqtt-match

Match mqtt formatted topic strings to strings, e.g. foo/+ should match foo/bar.

npm Node version Build Status JavaScript Style Guide

Usage

const match = require('mqtt-match')
console.log(match('foo/+', 'foo/bar'))
// true

License

MIT