npm

Need private packages and team management tools?Check out npm Orgs. »

minimatch-all

1.1.0 • Public • Published

minimatch-all

Build Status

minimatch a path against multiple patterns.

Install

npm install minimatch-all

Usage

var minimatchAll = require('minimatch-all');
 
// minimatch options (see <https://www.npmjs.org/package/minimatch> for details)
var opts = {};
 
var patterns = [
  // match all js files
  '**/*.js',
 
  // except for js files in the foo/ directory
  '!foo/*.js',
 
  // unless it's foo/bar.js
  'foo/bar.js',
];
 
minimatchAll('foo/foo.js', patterns, opts);
// false
 
minimatchAll('foo/bar.js', patterns, opts);
// true

License

MIT

Keywords

install

npm i minimatch-all

Downloadsweekly downloads

18,117

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability