File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 4
4
AsyncIterator to Array conversion for JavaScript.
5
5
See [ docs] ( https://async-iterable-iterator.github.io/async-iterator-to-array/index.html ) .
6
6
7
- > :building_construction : Caveat emptor! This is work in progress. Code may be
8
- > working. Documentation may be present. Coherence may be. Maybe.
9
-
10
7
> :warning : Depending on your environment, the code may require
11
8
> ` regeneratorRuntime ` to be defined, for instance by importing
12
9
> [ regenerator-runtime/runtime] ( https://www.npmjs.com/package/regenerator-runtime ) .
13
10
11
+ ``` js
12
+ import {asyncIteratorToArray } from ' @async-iterable-iterator/async-iterator-to-array' ;
13
+
14
+ let asyncIterator = ... ;
15
+ let array = await asyncIteratorToArray (asyncIterator);
16
+ ```
17
+
14
18
[ ![ License] ( https://img.shields.io/github/license/async-iterable-iterator/async-iterator-to-array.svg )] ( https://raw.githubusercontent.com/async-iterable-iterator/async-iterator-to-array/main/LICENSE )
15
19
[ ![ Version] ( https://img.shields.io/npm/v/@async-iterable-iterator/async-iterator-to-array.svg )] ( https://www.npmjs.org/package/@async-iterable-iterator/async-iterator-to-array )
16
20
[ ![ Tests] ( https://img.shields.io/github/workflow/status/async-iterable-iterator/async-iterator-to-array/ci?event=push&label=tests )] ( https://github.com/async-iterable-iterator/async-iterator-to-array/actions/workflows/ci.yml?query=branch:main )
You can’t perform that action at this time.
0 commit comments