Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

recursive-files

tallesl70Fairdeprecated1.0.2

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

Asynchronous recursive readdir.

async, recursive, readdir

readme

recursive-files

Asynchronous recursive readdir. Note that the given callback it's called multiple times, one for each found file.

Usage

recursiveFiles(dir, [options], callback)
  • dir directory path;
  • options
    • hidden list hidden files (files starting with .), defaults to false
    • ext list only files with the provided extension
    • nonregular list non regular files such as devices or sockets, defaults to false
  • callback function (err, file)
    • err eventual error
    • file a relative path of the found file to the given directory path;