JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2210
  • Score
    100M100P100Q25009F
  • License MIT

Search for a file in an array of paths

Package Exports

  • find-file

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (find-file) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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