1.0.1 • Published 10 years ago

find-file v1.0.1

Weekly downloads
3,721
License
MIT
Repository
github
Last release
10 years ago

find-file Build Status

Search for a file in an array of paths

Install

$ npm install --save find-file

Usage

var Find = require('find-file');

var find = new Find()
    .name('foo.jpg')
    .where(['./images', './media']);

find.run(function (err, files) {
    if (err) {
        throw err;
    }

    console.log(files);
    //=> [{ path: 'images/foo.jpg', name: 'foo.jpg', ...}]
});

License

MIT © Kevin Mårtensson

1.0.1

10 years ago

1.0.0

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago