A utility for matching strings to AMQP-style topic patterns and url templates.
npm install topic-patterns
var topicPatterns = require('topic-patterns');
var pattern = topicPatterns('#.nyse.*');
pattern.match('stock.nyse.google'); //returns true
pattern.match('stock.tokyo.google'); //returns false
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
TODO: Write history
Adedayo Omitayo - https://github.com/Aomitayo