# sizer

> Filter files by size recursively

Latest version **0.1.1** (published 2014-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install sizer
pnpm add sizer
yarn add sizer
bun add sizer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-01-03 |
| First published | 2014-01-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| Author | Scott Corgan |
| Maintainers | scottcorgan |
| Keywords | filter, files, size, stat, file |

## Links

- npm: https://www.npmjs.com/package/sizer
- Repository: https://github.com/scottcorgan/sizer
- Issues: https://github.com/scottcorgan/sizer/issues
- npm.io page: https://npm.io/package/sizer

## Dependencies (2)

- [shrub](https://npm.io/package/shrub.md) ~0.2.0
- [minimatch](https://npm.io/package/minimatch.md) ~0.2.14

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2014-01-03
- 0.1.0 — 2014-01-03

## README

# sizer
 
Filter files by size recursively
 
## Install
 
```
npm install sizer --save
```
 
## Usage
 
```js
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](https://github.com/isaacs/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](https://github.com/isaacs/minimatch) to compare)
* `callback` - gets called when call files have been compared
 
## Run Tests
 
```
npm install
npm test
```

---
_Source: https://npm.io/package/sizer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
