recursive-readdir

Get an array of all files in a directory and subdirectories.

npm install recursive-readdir
9 596 downloads in the last day
48 632 downloads in the last week
221 407 downloads in the last month

recursive-readdir

A simple Node module for recursively listing all files in a directory, or in any subdirectories.

It does not list directories themselves.

Installation

npm install recursive-readdir

Usage

var recursive-readdir = require('recursive-readdir');

recursive-readdir('some/path', function (err, files) {
  // Files is an array of filename
  console.log(files);
});
npm loves you