Website/node_modules/fs-readdir-recursive
2015-12-02 18:21:44 -05:00
..
index.js Initial website 2015-12-02 18:21:44 -05:00
LICENSE Initial website 2015-12-02 18:21:44 -05:00
package.json Initial website 2015-12-02 18:21:44 -05:00
README.md Initial website 2015-12-02 18:21:44 -05:00

fs.readdirSyncRecursive

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Read a directory recursively.

Install

npm install fs-readdir-recursive

Example

var read = require('fs-readdir-recursive')
read(__dirname) === [
  'test/test.js',
  'index.js',
  'LICENSE',
  'package.json',
  'README.md'
]

API

read(root [, filter])

root is the directory you wish to scan. filter is an optional filter for the files. By default, filter is:

function (x) {
  return x[0] !== '.'
}

Which basically just ignores . files.