Skip to content

maranac0d3r/Url-Pattern-Matcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Returns whether the url pattern is matched or not

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published