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.
- Host: GitHub
- URL: https://github.com/marshallswain/node-directory-search
- Owner: marshallswain
- License: mit
- Created: 2014-02-02T04:11:19.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-01T17:38:39.000Z (over 10 years ago)
- Last Synced: 2025-02-02T05:04:23.998Z (4 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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' ]