find-file

Search for a file in an array of paths

Use the globby package instead
Last updated 11 years ago by kevva .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install find-file 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (10 years ago)

7 Versions

  • 1.0.1 [deprecated]           ...           10 years ago
  • 1.0.0 [deprecated]           ...           10 years ago
  • 0.1.4 [deprecated]           ...           11 years ago
  • 0.1.3 [deprecated]           ...           11 years ago
  • 0.1.2 [deprecated]           ...           11 years ago
  • 0.1.1 [deprecated]           ...           11 years ago
  • 0.1.0 [deprecated]           ...           11 years ago
Maintainers (1)
Downloads
Total 1
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE