Skip to main content

@std/io@0.225.0

UNSTABLE: The utilities for advanced I/O operations using Reader and Writer interfaces.

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
88%
Published
2 months ago (0.225.0)

default

Utilities for working with Deno's readers, writers, and web streams.

c
Buffer

A variable-sized buffer of bytes with read() and write() methods.

I
Closer

An abstract interface which when implemented provides an interface to close files/resources that were previously opened.

f
copy

Copies from src to dst until either EOF (null) is read from src or an error occurs. It resolves to the number of bytes copied or rejects with the first error encountered while copying.

f
iterateReader

Turns a Reader into an async iterator.

f
iterateReaderSync

Turns a ReaderSync into an iterator.

f
readAll

Read Reader r until EOF (null) and resolve to the content as Uint8Array.

f
readAllSync

Synchronously reads ReaderSync r until EOF (null) and returns the content as Uint8Array.

I
Reader

An abstract interface which when implemented provides an interface to read bytes into an array buffer asynchronously.

I
ReaderSync

An abstract interface which when implemented provides an interface to read bytes into an array buffer synchronously.

I
Seeker

An abstract interface which when implemented provides an interface to seek within an open file/resource asynchronously.

I
SeekerSync

An abstract interface which when implemented provides an interface to seek within an open file/resource synchronously.

E
SeekMode

A enum which defines the seek mode for IO related APIs that support seeking.

f
toReadableStream

Create a ReadableStream of Uint8Arrays from a Reader.

I
f
toWritableStream

Create a WritableStream from a Writer.

I
toWritableStreamOptions

Options for toWritableStream.

f
writeAll

Write all the content of the array buffer (arr) to the writer (w).

f
writeAllSync

Synchronously write all the content of the array buffer (arr) to the writer (w).

I
Writer

An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource asynchronously.

I
WriterSync

An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource synchronously.

c
Buffer

A variable-sized buffer of bytes with read() and write() methods.

f
copy

Copies from src to dst until either EOF (null) is read from src or an error occurs. It resolves to the number of bytes copied or rejects with the first error encountered while copying.

f
iterateReader

Turns a Reader into an async iterator.

f
iterateReaderSync

Turns a ReaderSync into an iterator.

I
Reader

An abstract interface which when implemented provides an interface to read bytes into an array buffer asynchronously.

I
ReaderSync

An abstract interface which when implemented provides an interface to read bytes into an array buffer synchronously.

f
readAll

Read Reader r until EOF (null) and resolve to the content as Uint8Array.

f
readAllSync

Synchronously reads ReaderSync r until EOF (null) and returns the content as Uint8Array.

f
toReadableStream

Create a ReadableStream of Uint8Arrays from a Reader.

I
f
toWritableStream

Create a WritableStream from a Writer.

I
toWritableStreamOptions

Options for toWritableStream.

I
Closer

An abstract interface which when implemented provides an interface to close files/resources that were previously opened.

I
Reader

An abstract interface which when implemented provides an interface to read bytes into an array buffer asynchronously.

I
ReaderSync

An abstract interface which when implemented provides an interface to read bytes into an array buffer synchronously.

I
Seeker

An abstract interface which when implemented provides an interface to seek within an open file/resource asynchronously.

I
SeekerSync

An abstract interface which when implemented provides an interface to seek within an open file/resource synchronously.

E
SeekMode

A enum which defines the seek mode for IO related APIs that support seeking.

I
Writer

An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource asynchronously.

I
WriterSync

An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource synchronously.

f
writeAll

Write all the content of the array buffer (arr) to the writer (w).

f
writeAllSync

Synchronously write all the content of the array buffer (arr) to the writer (w).