JSPM

fs-readdir-recursive

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5624002
  • Score
    100M100P100Q227801F
  • License MIT

Recursively read a directory

Package Exports

  • fs-readdir-recursive

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fs-readdir-recursive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.