Skip to content

feat(native): add stream-to-array to replacements - #1290

Merged
43081j merged 1 commit into
e18e:mainfrom
maksimgm:feat/stream-to-array
Nov 25, 2026
Merged

43081j merged 1 commit into
e18e:mainfrom
maksimgm:feat/stream-to-array

Conversation

@maksimgm

Copy link
Copy Markdown
Contributor

🔗 Linked issue

closes #1279

📚 Description

maps stream-to-array (~6.9M weekly downloads) to the existing Array.fromAsync entry.

import toArray from 'stream-to-array' // [!code --]

const chunks = await toArray(stream) // [!code --]
const chunks = await Array.fromAsync(stream) // [!code ++]

checked against stream-to-array@2.3.0 on object mode and buffer readables. the callback form just becomes await

@43081j
43081j merged commit afb82e3 into e18e:main Nov 25, 2026
5 checks passed
@maksimgm
maksimgm deleted the feat/stream-to-array branch November 25, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Replacement]: stream-to-array

2 participants