// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

/**
 * Utilities for working with Deno's readers, writers, and web streams.
 *
 * `Reader` and `Writer` interfaces are deprecated in Deno, and so many of these
 * utilities are also deprecated. Consider using web streams instead.
 *
 * ```ts no-assert
 * import { toReadableStream, toWritableStream } from "@std/io";
 *
 * await toReadableStream(Deno.stdin)
 *   .pipeTo(toWritableStream(Deno.stdout));
 * ```
 *
 * @module
 */

export * from "./buf_reader.ts";
export * from "./buf_writer.ts";
export * from "./buffer.ts";
export * from "./copy.ts";
export * from "./copy_n.ts";
export * from "./iterate_reader.ts";
export * from "./limited_reader.ts";
export * from "./multi_reader.ts";
export * from "./read_all.ts";
export * from "./read_delim.ts";
export * from "./read_int.ts";
export * from "./read_lines.ts";
export * from "./read_long.ts";
export * from "./read_range.ts";
export * from "./read_short.ts";
export * from "./read_string_delim.ts";
export * from "./reader_from_stream_reader.ts";
export * from "./slice_long_to_bytes.ts";
export * from "./string_reader.ts";
export * from "./string_writer.ts";
export * from "./to_readable_stream.ts";
export * from "./to_writable_stream.ts";
export * from "./types.ts";
export * from "./write_all.ts";

// denoCacheMetadata={"headers":{"cf-ray":"a223e6564ea07db6-LAX","etag":"\"40a8742624a5e7301a3f0e5c0459c538\"","content-length":"1335","x-robots-tag":"noindex","alt-svc":"h3=\":443\"; ma=86400","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","content-type":"text/typescript","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","cache-control":"public, max-age=31536000, immutable","access-control-expose-headers":"*","set-cookie":"__cf_bm=jEV0IHWmn5mjx8iEF1OqYTPqAd9KKnA799YAIx2j3v4-1785241874.9354267-1.0.1.1-HvMjXPEVK0jTZ0CFjoRn1X2roW6WFrKQwT0SJ58FqXRs4eKthQPVXYvUCNeqMnEUYetpJw8Yu5ziI6HYAg_s.QDOrWozigmPbA5C3V5T2YFWDvN5W_PZKdU4zpAsT7Bx; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","server":"cloudflare","x-jsr-backend":"modules","access-control-allow-origin":"*","cross-origin-resource-policy":"cross-origin","date":"Tue, 28 Jul 2026 12:31:15 GMT","vary":"Origin","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=4TMeioZhcRZeijhRi6BGkHDKn3wSun4BMqaUHrFFK28G8XFWkY%2Ff9CHwKxEgTqeQvH54LiL6pRExI2k08qOFtHiC1NKcXkkhIpoOJ%2BKv0q2ys4Mn3prJF7w%3D\"}]}","x-content-type-options":"nosniff"},"url":"https://jsr.io/@std/io/0.224.8/mod.ts","time":1785241875}