0.0.1 • Published 12 years ago
minimatch-list v0.0.1
#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)
pathString - a string to matchpatternListArray - list of patterns to match againstoptionsObject - hash of options that will be passed tominimatch.
It uses minimatch
in the background, so check there for more info.
0.0.1
12 years ago