it-glob
Async iterable filename pattern matcher
Table of contents
Install
$ npm i it-glob
Like glob
but async iterable.
Usage
import glob from 'it-glob'
const options = {
cwd
absolute
nodir
}
for await (const path of glob('/path/to/file', '**/*', options)) {
console.info(path)
}
See the minimatch docs for the full list of options.
License
Licensed under either of
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.