1.72 GB
20,066 files
Updated about 2 months ago
Name
Size
LICENSE1.1 kB
xet
README.md2.07 kB
xet
index.js611 Bytes
xet
package.json704 Bytes
xet
README.md

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 with three params(name, index, dir). By default, filter is:

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

Which basically just ignores . files.

Total size
1.72 GB
Files
20,066
Last updated
May 12
Pre-warmed CDN
US EU US EU

Contributors