16 lines
295 B
JavaScript
16 lines
295 B
JavaScript
|
'use strict';
|
||
|
|
||
|
var glob = require('./async');
|
||
|
|
||
|
module.exports = function(patterns, options) {
|
||
|
return new Promise(function(resolve, reject) {
|
||
|
glob(patterns, options, function(err, files) {
|
||
|
if (err) {
|
||
|
reject(err);
|
||
|
return;
|
||
|
}
|
||
|
resolve(files);
|
||
|
});
|
||
|
});
|
||
|
};
|