@remix-run/web-stream
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@remix-run/web-stream

ci package downloads styled with prettier

Web streams APIs across web & node. In browsers this library just exports stream constructors, in node it exports [native web stream implementations][node webstreams] when available and web-streams-polyfill

⚠️ Please note that library makes no attempt to polyfill WritableStream or TransforStream in web browsers that do not have them.

Usage

import {
  ReadableStream,
  WritableStream,
  TransformStream,
} from "@remix-run/web-stream"

Usage from Typescript

This library makes use of typescript using JSDOC annotations and also generates type definitions along with typed definition maps. So you should be able to get all the type inference out of the box.

Install

npm install @remix-run/web-stream

Package Sidebar

Install

npm i @remix-run/web-stream

Weekly Downloads

731,009

Version

1.1.0

License

MIT

Unpacked Size

6.47 kB

Total Files

6

Last publish

Collaborators

  • chancestrickland
  • mjackson