Skip to content

bloodyowl/match-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

match-path

https://travis-ci.org/bloodyowl/match-path

install

$ npm install bloody-matchpath

require

var matchPath = require("bloody-matchpath")

api

matchPath(string, matcher) > Boolean

checks string using the matcher pattern.

patterns

"foo.*.bar"
// matches
"foo.bar.bar"
// but not
"foo.bar.baz.bar"

"foo.**.bar"
// matches both
"foo.bar.bar"
// and
"foo.bar.baz.bar"