Skip to main content

Built and signed on GitHub Actions

Utilities for working with the Web Streams API

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 months ago (1.0.9)

Utilities for working with the Streams API.

Includes buffering and conversion.

import { toText } from "@std/streams";
import { assertEquals } from "@std/assert";

const stream = ReadableStream.from(["Hello, world!"]);
const text = await toText(stream);

assertEquals(text, "Hello, world!");
Built and signed on
GitHub Actions
View transparency log

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/streams

Import symbol

import * as streams from "@std/streams";
or

Import directly with a jsr specifier

import * as streams from "jsr:@std/streams";

Add Package

pnpm i jsr:@std/streams
or (using pnpm 10.8 or older)
pnpm dlx jsr add @std/streams

Import symbol

import * as streams from "@std/streams";

Add Package

yarn add jsr:@std/streams
or (using Yarn 4.8 or older)
yarn dlx jsr add @std/streams

Import symbol

import * as streams from "@std/streams";

Add Package

npx jsr add @std/streams

Import symbol

import * as streams from "@std/streams";

Add Package

bunx jsr add @std/streams

Import symbol

import * as streams from "@std/streams";