@nio/topic-matcher

1.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @nio/topic-matcher

Weekly Downloads

0

Version

1.2.0

License

ISC

Last publish

Collaborators

  • 32bitkid
  • mattdodge
  • deliciousmonster