chensenlai 10988628a0 语音房项目初始化 5 yıl önce
..
LICENSE 10988628a0 语音房项目初始化 5 yıl önce
README.md 10988628a0 语音房项目初始化 5 yıl önce
index.js 10988628a0 语音房项目初始化 5 yıl önce
package.json 10988628a0 语音房项目初始化 5 yıl önce

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. By default, filter is:

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

Which basically just ignores . files.