# fiterr

> iterate directories and operate on files and directories

Latest version **1.0.2** (published 2023-08-16) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-08-16 |
| First published | 2023-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Suryansh Kapil |
| Maintainers | asuka-405 |
| Keywords | directory, iteration, traversal, file, folder, iterate, callback, function, utility, npm, node, filesystem, iterative |

## Links

- npm: https://www.npmjs.com/package/fiterr
- Repository: https://github.com/asuka-405/fiterr
- Homepage: https://github.com/asuka-405/fiterr#readme
- Issues: https://github.com/asuka-405/fiterr/issues
- npm.io page: https://npm.io/package/fiterr

## 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

- 1.0.2 (latest) — 2023-08-16
- 1.0.1 — 2023-08-15
- 1.0.0 — 2023-08-15

## README

# fiterr - file and dir iterator

Pass your file and directory list to the fiterr function as dirs and files key of config object.
Pass 2 utility functions, ondir and onfile, that will come into play when fiterr will encounter a directory or file respectively.

```js
const fiterr = require("fiterr")

const config = {
  dirs: ["./src", "./utils"],
  ondir: function () {
    console.log("do something")
  },
  files: ["./package.json", "./types.d.ts"],
  onfile: function () {
    console.log("do something")
  },
}

fiterr(config)
```

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