1.1.4 • Published 7 years ago

list-files v1.1.4

Weekly downloads
134
License
MIT
Repository
github
Last release
7 years ago

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

1.1.4

7 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago