fs.readdirSyncRecursive
Read a directory recursively.
Install
npm install fs-readdir-recursive
Example
var read = === '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 with three params(name, index, dir). By default, filter is:
{ return name0 !== '.'}
Which basically just ignores .
files.