shift73k/assets_old/node_modules/glob-all/example/perf.js

12 lines
246 B
JavaScript
Raw Normal View History

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);
});