An open API service indexing awesome lists of open source software.

https://github.com/marshallswain/node-directory-search

Recursively search a directory and return a list of matching files. Currently searches only be extension.
https://github.com/marshallswain/node-directory-search

Last synced: 4 months ago
JSON representation

Recursively search a directory and return a list of matching files. Currently searches only be extension.

Awesome Lists containing this project

README

        

node-directory-search
=====================

Recursively search a directory and return a list of matching files. Currently searches only by matching file extension.

## Usage

var dirSearch = require('directory-search');

// Search 'public' directory for '.css' files.
dirSearch('public', '.css', function(err, results) {
if (err) throw err;
console.log(results);
});

Will result in an array that looks something like this:

[ 'public/styles/app.css',
'public/styles/tables.css',
'public/styles/home/login.css' ]