1.0.1 • Published 5 years ago

url_pattern_matcher v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

Url-Pattern-Matcher

Returns whether the url pattern is matched or not

npm i url_pattern_matcher --save
npm stats

npm NPM downloads

Usage example(s)

var matcher = require('url_pattern_matcher')

matcher.matches("/profile/:name","/profile/anyname")
=>true

matcher.matches("/profile/name","/profile/anyname")
=>false

matcher.matches("/user/:userid/message/:messageid","/user/azyeid/message/72839203784")
=>true

Licenses

LICENSE