Package Exports
- matched
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (matched) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
matched 
Super fast globbing library.
Install
Install with npm:
npm i matched --save-dev
Usage
├── node_modules/...
├── index.js
├── README.md
└── test/test.js
var matched = require('matched');
matched('**/*.js');
//=> ['index.js', 'test/test.js']
API
matched(patterns, options)
See supported globby options.
patterns
Required
Type: string|array
See minimatch for options and supported patterns.
options
Type: object
exclusions
Matched excludes certain directories to speed up search.
Type: array
Default: ['.git', 'node_modules', 'temp', 'tmp']
Pass an array of additional directories to exlude:
matched(['**/*.js'], {omit: ['vendor']});
See node-glob for all supported options.
Tests
In the command line, run:
mocha
Globbing patterns
Just a quick overview.
*
matches any number of characters, but not/
?
matches a single character, but not/
**
matches any number of characters, including/
, as long as it's the only thing in a path part{}
allows for a comma-separated list of "or" expressions!
at the beginning of a pattern will negate the match
Various patterns and expected matches.
Related
See multimatch if you need to match against a list instead of the filesystem.
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on June 26, 2014.