Socket
Socket
Sign inDemoInstall

extra-stream

Package Overview
Dependencies
6
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    extra-stream

Utilities for Stream.


Version published
Weekly downloads
15
increased by200%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

0.3.1 (2023-06-11)

Bug Fixes

  • export src (bfd629f)

Readme

Source

extra-stream

Utilities for Stream.

Install

npm install --save extra-stream
# or
yarn add extra-stream

API

ReadableStream, WritableStream, TransformStream, TextDecoderStream, TextEncoderStream

The WHATWG ReadableStream, WritableStream, TransformStream, TextDecoderStream, TextEncoderStream.

toReadableStream

function toReadableStream<T>(
  iterable: Iterable<T> | AsyncIterable<T>
): ReadableStream<T>

toAsyncIterableIterator

function toAsyncIterableIterator<T>(stream: ReadableStream<T>): AsyncIterableIterator<T>

ReadableStream should be an async iterable object, but many runtimes don't support this yet.

isNodeJSReadableStream

function isNodeJSReadableStream(val: any): val is NodeJS.ReadableStream

isNodeJSWritableStream

function isNodeJSWritableStream(val: any): val is NodeJS.WritableStream

FAQs

Last updated on 11 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc