matched ![NPM version](https://badge.fury.io/js/matched.svg)
Adds array support to node-glob, sync and async. Also supports tilde expansion (user home) and resolving to global npm modules.
TODO
Install
Install with npm
$ npm i matched --save
Usage
var glob = require('matched');
async
glob(['*.js'], function(err, files) {
});
sync
var files = glob.sync(['*.js']);
options
Both sync and async take options as the second argument:
glob(['*.js'], {cwd: 'test'}, function(err, files) {
});
Related projects
- is-glob: Returns
true
if the given string looks like a glob pattern or an extglob pattern.… more | homepage - look-up: Faster drop-in replacement for find-up and findup-sync. | homepage
- micromatch: Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… more | homepage
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
License
Copyright © 2015 Jon Schlinkert
Released under the MIT license.
This file was generated by verb-cli on October 11, 2015.