// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.// This module is browser compatible. import{TextLineStreamas _TextLineStream }from"./text_line_stream.ts";import{DelimiterStreamas _DelimiterStream }from"./delimiter_stream.ts";import{TextDelimiterStreamas _TextDelimiterStream }from"./text_delimiter_stream.ts"; /** * @deprecated (will be removed after 0.169.0) Import from `std/streams/text_line_stream.ts` instead. * * Transform a stream into a stream where each chunk is divided by a newline, * be it `\n` or `\r\n`. `\r` can be enabled via the `allowCR` option. * * ```ts * import { TextLineStream } from "https://deno.land/std@$STD_VERSION/streams/delimiter.ts"; * const res = await fetch("https://example.com"); * const lines = res.body! * .pipeThrough(new TextDecoderStream()) * .pipeThrough(new TextLineStream()); * ``` */exportconstTextLineStream= _TextLineStream; /** * @deprecated (will be removed after 0.169.0) Import from `std/streams/delimiter_stream.ts` instead. * * Transform a stream into a stream where each chunk is divided by a given delimiter. * * ```ts * import { DelimiterStream } from "https://deno.land/std@$STD_VERSION/streams/delimiter.ts"; * const res = await fetch("https://example.com"); * const parts = res.body! * .pipeThrough(new DelimiterStream(new TextEncoder().encode("foo"))) * .pipeThrough(new TextDecoderStream()); * ``` */exportconstDelimiterStream= _DelimiterStream; /** * @deprecated (will be removed after 0.169.0) Import from `std/streams/delimiter_stream.ts` instead. * * Transform a stream into a stream where each chunk is divided by a given delimiter. * * ```ts * import { TextDelimiterStream } from "https://deno.land/std@$STD_VERSION/streams/delimiter.ts"; * const res = await fetch("https://example.com"); * const parts = res.body! * .pipeThrough(new TextDecoderStream()) * .pipeThrough(new TextDelimiterStream("foo")); * ``` */exportconstTextDelimiterStream= _TextDelimiterStream;