minimatch-list

0.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i minimatch-list

Weekly Downloads

1

Version

0.0.1

License

BSD-2-Clause

Last publish

Collaborators

  • jergason