matching-iterator
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

npm License Typed with TypeScript bundlejs 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 Iterable<(string | Object)> filtered entries

asyncMatcher

Match entries against glob pattern.

Parameters

Returns AsyncGenerator<(string | Object)> filtered entries

compile

Parameters

Returns any globs copiled into regex

install

With npm do:

npm install matching-iterator

license

BSD-2-Clause

Readme

Keywords

none

Package Sidebar

Install

npm i matching-iterator

Weekly Downloads

818

Version

2.1.3

License

BSD-2-Clause

Unpacked Size

13.4 kB

Total Files

5

Last publish

Collaborators

  • arlac77