iva

Glob matching as async iterable

Usage no npm install needed!

<script type="module">
  import iva from 'https://cdn.skypack.dev/iva';
</script>

README

iva

Glob matching as async iterable.

Install

$ yarn add iva

Usage

const matchGlobs: (globs: Iterable<string>) => AsyncIterable<string>
import { matchGlobs } from 'iva'

const pathIterable = matchGlobs(['packages/*/src/*.ts', '!packages/foo/**'])

for await (const path of pathIterable) {
  console.log(path)
}