All Projects → ralphtheninja → mqtt-match

ralphtheninja / mqtt-match

Licence: MIT license
Match mqtt formatted topic strings

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to mqtt-match

Regex Dos
👮 👊 RegEx Denial of Service (ReDos) Scanner
Stars: ✭ 143 (+652.63%)
Mutual labels:  regexp
Regex Automata
A low level regular expression library that uses deterministic finite automata.
Stars: ✭ 203 (+968.42%)
Mutual labels:  regexp
regexp-example
正则表达式实例搜集,通过实例来学习正则表达式。
Stars: ✭ 162 (+752.63%)
Mutual labels:  regexp
Regex
An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
Stars: ✭ 2,125 (+11084.21%)
Mutual labels:  regexp
Common Regex
🎃 常用正则表达式 - 收集一些在平时项目开发中经常用到的正则表达式。
Stars: ✭ 2,488 (+12994.74%)
Mutual labels:  regexp
String Replace Loader
Replace loader for Webpack
Stars: ✭ 205 (+978.95%)
Mutual labels:  regexp
Learn Regex Zh
🇨🇳 翻译: 学习正则表达式的简单方法
Stars: ✭ 1,772 (+9226.32%)
Mutual labels:  regexp
cregex
A small implementation of regular expression matching engine in C
Stars: ✭ 72 (+278.95%)
Mutual labels:  regexp
Regexpu
A source code transpiler that enables the use of ES2015 Unicode regular expressions in ES5.
Stars: ✭ 201 (+957.89%)
Mutual labels:  regexp
Regaxor
A regular expression fuzzer.
Stars: ✭ 35 (+84.21%)
Mutual labels:  regexp
Grex
A command-line tool and library for generating regular expressions from user-provided test cases
Stars: ✭ 4,847 (+25410.53%)
Mutual labels:  regexp
Anteater
Anteater - CI/CD Gate Check Framework
Stars: ✭ 174 (+815.79%)
Mutual labels:  regexp
Regex For Regular Folk
🔍💪 Regular Expressions for Regular Folk — A visual, example-based introduction to RegEx [BETA]
Stars: ✭ 242 (+1173.68%)
Mutual labels:  regexp
Xioc
Extract indicators of compromise from text, including "escaped" ones.
Stars: ✭ 148 (+678.95%)
Mutual labels:  regexp
universalmutator
Regexp based tool for mutating generic source code across numerous languages
Stars: ✭ 105 (+452.63%)
Mutual labels:  regexp
Notes
👋 如果有一天我失忆了,忘记了所有的前端知识,我希望这个项目能让我很快掌握
Stars: ✭ 126 (+563.16%)
Mutual labels:  regexp
Stringi
THE String Processing Package for R (with ICU)
Stars: ✭ 204 (+973.68%)
Mutual labels:  regexp
path-to-regexp-php
PHP port of https://github.com/pillarjs/path-to-regexp
Stars: ✭ 21 (+10.53%)
Mutual labels:  regexp
url-regex-safe
Regular expression matching for URL's. Maintained, safe, and browser-friendly version of url-regex. Resolves CVE-2020-7661 for Node.js servers.
Stars: ✭ 59 (+210.53%)
Mutual labels:  regexp
moar
Deterministic Regular Expressions with Backreferences
Stars: ✭ 19 (+0%)
Mutual labels:  regexp

mqtt-match

Match mqtt formatted topic strings to strings

npm Node version Node.js CI JavaScript Style Guide

Usage

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

Api

match(filter, topic[, handleSharedSubscription])

  • filter (string) - mqtt filter topic, e.g. foo/+/bar
  • topic (string) - topic string, e.g. foo/314/bar
  • handleSharedSubscription (boolean) - set to true if handling $share/ filter topics

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].