finf

Returns an array of files in a folder

  • finf

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
finf
210.0.19 years ago9 years agoMinified + gzip package size for finf in KB

Readme

finf (files in folder) Build Status
Returns an array of files in a folder
Usage
npm install --save finf

API
// es2015
let [err, list] = finf("/tests/dummy/");
console.log(list);
// [file.1.js, file.js.1, file1.js]

// with pattern
let [err, list] = finf("/tests/dummy", "*.js");
console.log(list);
// [file.1.js, file1.js]

// es5
var list = finf("/tests/dummy/");
console.log(list[1]);
// [file.1.js, file.js.1, file1.js]