Package Exports
- it-glob
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 (it-glob) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
it-glob
Async iterable filename pattern matcher
Like glob
but async iterable.
Installation
$ npm install --save it-glob
Usage
const glob = require('it-glob')
const options = {
ignore: [
'glob' // glob patterns to ignore
],
cwd // defaults to process.cwd
absolute // return absolute paths, defaults to false
nodir // only yield file paths, skip directories
// all other options are passed to minimatch
}
for await (const path of glob('/path/to/file', '**/*', options)) {
console.info(path)
}