Skip to content

[Replacement]: into-stream #1281

Done

Description

@maksimgm

Package to replace

into-stream

Package link

https://npmx.dev/package/into-stream

Native replacement(s)

Readable.from()

Documentation

https://nodejs.org/api/stream.html#streamreadablefromiterable-options

Availability

Node.js v12.3.0+ / v10.17.0+

Rationale

turns strings, buffers, arrays and iterables into a readable, which is what Readable.from does. it's already in the manifest (to-readable-stream uses it). same output as into-stream@9.1.0 for strings and arrays. one difference: the package also accepts a promise, so that would need an await first. ~5.8M weekly downloads

Code example (optional)

import intoStream from 'into-stream' // [!code --]
import { Readable } from 'node:stream' // [!code ++]

const stream = intoStream(['a', 'b']) // [!code --]
const stream = Readable.from(['a', 'b']) // [!code ++]

Activity

  1. added
    accepted
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions