lf

list-files

Finds all files in a directory and passes them into an array.

Showing:

Popularity

Downloads/wk

30

GitHub Stars

1

Maintenance

Last Commit

5yrs ago

Contributors

2

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

list-files Build Status npm version Coverage Status

Finds all files in a directory and passes them into an array. Can specify the name of sub-directory and match a file extension.

Install

npm install list-files

Usage

var find = require('list-files');

find(function(result) {
    console.log(result);
    //=> './dirname/a.js'
    //=> './dirname/b.js'
}, {
    dir: 'dirname',
    name: 'js'
});

API

find(callback, [argv])

callback

Type: function

Called once the search is complete.

argv

Type: object

Optional options. Possible options 'dir', 'name' and 'exclude'.

License

MIT © Emil Johansson

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial