minimatch-list
v0.0.1
Published
Match a single string against a list of minimatch patterns
Downloads
3
Readme
#minimatch-list
Match a single string against a list of patterns, using issac's minimatch library.
##Usage
var minimatchList = require('../index')
var patterns = [
'*hurp',
'**durp**',
'foobar'
]
console.log(minimatchList('foobar', patterns)) // true
console.log(!minimatchList('beans', patterns)) // false
##API
###minimatch-list(path, patternList, options)
path
String - a string to matchpatternList
Array - list of patterns to match againstoptions
Object - hash of options that will be passed tominimatch
.
It uses minimatch
in the background, so check there for more info.