url_pattern_matcher

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i url_pattern_matcher

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.02 kB

Total Files

4

Last publish

Collaborators

  • maranac0d3r