sizer

Filter files by size recursively

sizer

Filter files by size recursively

npm install sizer --save
var sizer = require('sizer');
 
sizer.bigger(1000, __dirname, function (errfiles) {
  // files is a list of files bigger than 1000 bytes 
});
  • bytes - size in bytes to compare the files to
  • directory - the directory containing the files
  • ignore - (OPTIONAL) an array of files to ignore (uses minimatch to compare)
  • callback - gets called when call files have been compared
  • bytes - size in bytes to compare the files to
  • directory - the directory containing the files
  • ignore - (OPTIONAL) an array of files to ignore (uses minimatch to compare)
  • callback - gets called when call files have been compared
npm install
npm test