Skip to content

Urucas/finf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

Returns an array of files in a folder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published