Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class TextDelimiterStream
extends TransformStream<string, string>
import { TextDelimiterStream } from "";

Transform a stream into a stream where each chunk is divided by a given delimiter.

import { TextDelimiterStream } from "";
const res = await fetch("");
const parts = res.body!
  .pipeThrough(new TextDecoderStream())
  .pipeThrough(new TextDelimiterStream("foo"));


TextDelimiterStream(delimiter: string)