Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nekobato/readdirrecursive

readdirRecursively
https://github.com/nekobato/readdirrecursive

Last synced: about 13 hours ago
JSON representation

readdirRecursively

Awesome Lists containing this project

README

        

Readdir recursive
=================

Readdir recursively to output files or dirs.

# How to use

require

```js
rread = require('readdir-recursive');
```

### Readfiles

Callback operates each files.

```js
rread.file('./', function(file) {
console.log(file);
}
```

### ReadfilesSync

Returns all files;

```js
files = rread.fileSync('./');
```

### ReaddirsSync

Callback operates each dirs.

```js
rread.dir('./', function(dir) {
console.log(dir);
}
```

### ReaddirsSync

Returns all dirs;

```js
dirs = rread.dirSync('./');
```