0.0.1 • Published 11 years ago

minimatch-list v0.0.1

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

#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 match
  • patternList Array - list of patterns to match against
  • options Object - hash of options that will be passed to minimatch.

It uses minimatch in the background, so check there for more info.