# everyfile

> Recurse through a directory structure and do stuff with every file!

Latest version **1.0.3** (published 2015-03-21) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2015-03-21 |
| First published | 2015-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Dan Peterson |
| Maintainers | danrpts |
| Keywords | recursive, every, files, everyfile |

## Links

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

## 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.3 (latest) — 2015-03-21
- 1.0.2 — 2015-03-21
- 1.0.1 — 2015-03-09
- 1.0.0 — 2015-03-08

## README

# everyfile
Recurse through a directory structure and do stuff with every file!

---

The callback is passed three arguments: the current file's name, relative path, and [stats](https://nodejs.org/api/fs.html#fs_class_fs_stats) object.

## Asynchronous

```
var every = require('everyfile');

every.async('.', function (filename, pathname, filestats) {

  // do stuff ...
  console.log('%s: %s/%s', "Async found", pathname, filename);

});
```


## Synchronous

```
var files = every.sync('.');
console.log(files);
```
or
```
every.sync('.', function (filename, pathname, filestats) {

  // other stuff ...
  console.log('%s: %s/%s', "Sync found", pathname, filename);

});
```

---

Feedback, tests and pull requests are welcomed.

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