# @spatocode/dirwalk

> Directory tree traversal in nodejs

Latest version **0.0.1** (published 2019-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @spatocode/dirwalk
pnpm add @spatocode/dirwalk
yarn add @spatocode/dirwalk
bun add @spatocode/dirwalk
```

## 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.0.1 |
| Published | 2019-12-30 |
| First published | 2019-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ekene Izukanne |
| Maintainers | spatocode |
| Keywords | fs, dirwalk, traversal, dir, walk, file, directory |

## Links

- npm: https://www.npmjs.com/package/@spatocode/dirwalk
- Repository: https://github.com/spatocode/dirwalk
- Homepage: https://github.com/spatocode/dirwalk#README
- Issues: https://github.com/spatocode/dirwalk/issues
- npm.io page: https://npm.io/package/@spatocode/dirwalk

## 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.0.1 (latest) — 2019-12-30
- 0.0.0 — 2019-12-29

## README

# dirwalk

Directory tree traversal in nodejs

## Installation

```sh
$ npm install @spatocode/dirwalk
```

## Usage


```js
const dirwalk = require("@spatocode/dirwalk");

// Asynchronous function
dirwalk.walk("path/to/dir", (err, path, info) => {
    if (err) {
        throw err;
    }
    console.log(path, " : ", info.size);
});

// Synchronous function
var files = dirwalk.walkSync("path/to/dir");
console.log(files);
```

## License

[MIT License](http://www.github.com/spatocode/dirwalk/blob/master/LICENSE)
Copyright (c) 2019 Ekene Izukanne

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