Nefariously Programmed Mecha

    This package has been deprecated

    Author message:

    Use the globby package instead

    find-file

    1.0.1 • Public • Published

    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

    Install

    npm i find-file

    DownloadsWeekly Downloads

    11,445

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • kevva