it-glob
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

codecov CI

Async iterable filename pattern matcher

About

Like glob but async iterable.

Example

import glob from 'it-glob'

const options = {
  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)
}

See the minimatch docs for the full list of options.

Install

$ npm i it-glob

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.

Readme

Keywords

none

Package Sidebar

Install

npm i it-glob

Weekly Downloads

99,970

Version

2.0.6

License

Apache-2.0 OR MIT

Unpacked Size

34.8 kB

Total Files

9

Last publish

Collaborators

  • achingbrain