sizer

0.1.1 • Public • Published

sizer

Filter files by size recursively

Install

npm install sizer --save

Usage

var sizer = require('sizer');
 
sizer.bigger(1000, __dirname, function (err, files) {
  // files is a list of files bigger than 1000 bytes
});

Api

bigger(bytes, directory[, ignore], callback)

  • 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

smaller(bytes, directory[, ignore], callback)

  • 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

Run Tests

npm install
npm test

Readme

Keywords

none

Package Sidebar

Install

npm i sizer

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • scottcorgan