0.2.1 • Published 10 years ago

get-files-in-dir v0.2.1

Weekly downloads
36
License
MIT
Repository
github
Last release
10 years ago

get-files-in-dir - Given a path, retrieves all matching files.

Installation

npm install get-files-in-dir --save
 

Usage

var getFiles = require("get-files-in-dir");

function endsWithTxt(filename){
	return filename.lastIndexOf(".txt") === (filename.length - 4);
}
var matchingFiles = getFiles('somePath', includeSubdirs, endsWithTxt);
0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago