Async iterable filename pattern matcher
Like glob
but async iterable.
File separators on Windows will be yielded as /
and not ``.
import glob from 'it-glob'
// All options are passed through to fast-glob
const options = {}
for await (const path of glob('/path/to/file', '**/*', options)) {
console.info(path)
}
See the fast-glob docs for the full list of options.
$ npm i it-glob
Licensed under either of
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.
Like
glob
but async iterable.File separators on Windows will be yielded as
/
and not ``.Example
See the fast-glob docs for the full list of options.