@nio/topic-matcher
v1.2.0
Published
nio communications topic matcher
Downloads
4
Readme
Installation
$ npm install @nio/topic-matcher
Usage
import match from '@nio/topic-matcher';
// match: (subTopic: string, pubTopic: string) => boolean;
match('foo', 'foo'); // => true
match('foo', 'bar'); // => false
match('foo.*', 'foo.bar'); // => true
match('foo.**', 'foo.bar.baz'); // => true