minimatch-all

Match a path against multiple patterns

MIT 4 个版本
安装
npm install minimatch-all
yarn add minimatch-all
pnpm add minimatch-all
bun add minimatch-all
README

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

版本列表
1.1.0 2016-08-30
1.0.2 2014-09-26
1.0.1 2014-09-26
1.0.0 2014-09-26