# node-fse-walk

> > fs-extra readDir walker

Latest version **1.1.4** (published 2020-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-fse-walk
pnpm add node-fse-walk
yarn add node-fse-walk
bun add node-fse-walk
```

## 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.1.4 |
| Published | 2020-08-14 |
| First published | 2020-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eric Yu |
| Maintainers | yuyicman |

## Links

- npm: https://www.npmjs.com/package/node-fse-walk
- Repository: https://github.com/yuyic/node-fse-walk
- Homepage: https://github.com/yuyic/node-fse-walk#readme
- Issues: https://github.com/yuyic/node-fse-walk/issues
- npm.io page: https://npm.io/package/node-fse-walk

## Recent versions

- 1.1.4 (latest) — 2020-08-14
- 1.1.3 — 2020-08-14
- 1.1.2 — 2020-08-14
- 1.1.0 — 2020-08-14
- 1.0.0 — 2020-08-13

## README

# `node-fse-walk`

> fs-extra readDir walker

## Usage

```js
const { lookup } = require("node-fse-walk");

lookup({
    root: __dirname+"/folder",
    type:"dir" // or 'file'
})
.then((p, stats)=>{
    console.log(p, stats.isDirectory())
});

```

```js
const { Walk } = require("node-fse-walk");

const fileList = [];
const dirList = [];

Walk.go(__dirname)
.filter(p => /^(?!(__))/.test(p)) // ignore file name start with __
.on("file", p => fileList.push(p))
.on("dir", p => dirList.push(p))
.on('error', function(err){
    console.error(err.message)
})
.on('end', function(){
    console.log(fileList, dirList);
})

```

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