Skip to content

Recursively search files in multiple dirs filtered by RegExp, file mask or custom filter function

License

Notifications You must be signed in to change notification settings

trabalka/node-find-files-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-find-files-sync

Recursively search files in multiple dirs filtered by RegExp, file mask or custom filter function

Example use

const findFiles = require('node-find-files-sync')
let files
files = findFiles(process.argv.slice(3), '*.jpg')
files = findFiles(process.argv.slice(3), /\.jpg$/)
files = findFiles(process.argv.slice(3), (path)=>path.substr(-3)=='jpg')
files = findFiles('/tmp', '*.jpg')
files = findFiles(['/tmp','/var/tmp','/var/tmp/tes.jpg'], '*.jpg')

About

Recursively search files in multiple dirs filtered by RegExp, file mask or custom filter function

Resources

License

Stars

Watchers

Forks

Packages

No packages published