Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.47 kb

FileFinder

This module searches a directory recursively for a file that matches some string key.

Installation

npm install file-finder

Usage

var FileFinder = require( 'file-finder' );

var options = {
    searchSubDirectories : true
}

FileFinder.findFiles( directory, searchString, options, function(error, matchingFiles) {
    ...do some stuff with the files that matched the search string
});
Jump to Line
Something went wrong with that request. Please try again.