11 lines
246 B
JavaScript
11 lines
246 B
JavaScript
var glob = require('../');
|
|
|
|
var t = Date.now();
|
|
glob([
|
|
'**',
|
|
'!**/*.js'
|
|
], {
|
|
cwd: '/Users/jpillora/Code/Node/', /* folder with many files */
|
|
}, function(err, files) {
|
|
console.log('found %s files in %sms', files.length, Date.now()-t);
|
|
});
|