JSPM

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

Find files or sub-directories inside a directory in a clear way

Package Exports

  • find

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) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#find

Find files or sub-directories within a direcrory in a clear way.

Installation

npm install find

Examples

var find = require('find');

find.file(/\.js$/, __dirname, function(all) {
  console.log(all.length);
}

find.eachfile(/\.js$/, __dirname, function(js) {
  console.log(js);
}

var all = find.fileSync(/\.js$/, __dirname);

Features

  • Recursively search each sub-directories
  • Asynchronously or synchronously
  • Filtering with regular expression or string comparing

API

coming soon.

LICENSE

(MIT Licensed)