recursive-readdir

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

npm install recursive-readdir
2 937 downloads in the last day
53 131 downloads in the last week
206 937 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