matching-iterator

glob style matching on iterables

Usage no npm install needed!

<script type="module">
  import matchingIterator from 'https://cdn.skypack.dev/matching-iterator';
</script>

README

npm License minified size downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

matching-iterator

glob style matching on iterables

usage

import { matcher } from "matching-iterator";

for await (const r of matcher([
    { name: "a" },{ name: "b" }], "a*", { name: "name" })) {
  console.log(r);
}

API

Table of Contents

matcher

Match entries against glob pattern.

Parameters

Returns Iterator<string> filtered entries

install

With npm do:

npm install matching-iterator

license

BSD-2-Clause