mqtt-topics

1.0.2 • Public • Published

MQTT Topics

Tool to match MQTT topic name against topic filter regarding MQTT specification.

Installation

npm install mqtt-topics --save

Example

var MqttTopics = require('mqtt-topics');
var result = MqttTopics.match('sport/tennis/+/score', 'sport/tennis/player1/score');
 
console.log(result);
// Outputs 'true' to the console

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i mqtt-topics

Weekly Downloads

11

Version

1.0.2

License

MIT

Last publish

Collaborators

  • tomaspuza