2.1.3 • Published 3 months ago

matching-iterator v2.1.3

Weekly downloads
1,709
License
BSD-2-Clause
Repository
github
Last release
3 months ago

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

2.1.3

3 months ago

2.1.2

3 months ago

2.1.1

3 months ago

2.1.0

3 months ago

2.0.12

12 months ago

2.0.11

1 year ago

2.0.9

1 year ago

2.0.10

1 year ago

2.0.8

2 years ago

2.0.5

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago