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)
interface Writer

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

Methods

Writes p.byteLength bytes from p to the underlying data stream. It resolves to the number of bytes written from p (0 <= n <= p.byteLength) or reject with the error encountered that caused the write to stop early. write() must reject with a non-null error if would resolve to n < p.byteLength. write() must not modify the slice data, even temporarily.

Implementations should not retain a reference to p.

Add Package

deno add jsr:@std/io

Import symbol

import { type Writer } from "@std/io/types";

---- OR ----

Import directly with a jsr specifier

import { type Writer } from "jsr:@std/io/types";

Add Package

npx jsr add @std/io

Import symbol

import { type Writer } from "@std/io/types";

Add Package

yarn dlx jsr add @std/io

Import symbol

import { type Writer } from "@std/io/types";

Add Package

pnpm dlx jsr add @std/io

Import symbol

import { type Writer } from "@std/io/types";

Add Package

bunx jsr add @std/io

Import symbol

import { type Writer } from "@std/io/types";