topic-patterns

0.0.3 • Public • Published

topic-patterns

A utility for matching strings to AMQP-style topic patterns and url templates.

Installation

npm install topic-patterns

Usage

var topicPatterns = require('topic-patterns');

var pattern = topicPatterns('#.nyse.*');

pattern.match('stock.nyse.google');			//returns true

pattern.match('stock.tokyo.google');			//returns false

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

TODO: Write history

Credits

Adedayo Omitayo - https://github.com/Aomitayo

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i topic-patterns

Weekly Downloads

3

Version

0.0.3

License

MIT

Last publish

Collaborators

  • aomitayo