readdir-recursive

read directory recursively & output files or dirs

npm install readdir-recursive
8 downloads in the last week
22 downloads in the last month

Readdir recursive

Readdir recursively to output files or dirs.

How to use

require

rread = require('readdir-recursive');

Readfiles

Callback operates each files.

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

ReadfilesSync

Returns all files;

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

ReaddirsSync

Callback operates each dirs.

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

ReaddirsSync

Returns all dirs;

dirs = rread.dirSync('./');
npm loves you