find
Find files or directories by name. Using promises
Installation
$ npm install --save find-promise
Examples
Find all files in current directory.
var find = ; find
Filter by regular expression.
find
Features
- Recursively search each sub-directories
- Asynchronously or synchronously
- Filtering by regular expression or string comparing
API
.file([pattern,] root, callback)
find
.dir([pattern,] root, callback)
finddir__dirname
.eachfile([pattern,] root, action)
find
.eachdir([pattern,] root, action)
find
.fileSync([pattern,] root)
var files = find;
.dirSync([pattern,] root)
var dirs = find;
LICENSE
(MIT Licensed)