minimatch-all
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/minimatch-all package

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    6,976
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    6,976
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i minimatch-all

Weekly Downloads

6,976

Version

1.1.0

License

MIT

Last publish

Collaborators

  • joshwnj