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 WriterSync

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

Methods

Writes p.byteLength bytes from p to the underlying data stream. It returns the number of bytes written from p (0 <= n <= p.byteLength) and any error encountered that caused the write to stop early. writeSync() must throw a non-null error if it returns n < p.byteLength. writeSync() 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 WriterSync } from "@std/io/types";

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @std/io

Import symbol

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

Add Package

yarn dlx jsr add @std/io

Import symbol

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

Add Package

pnpm dlx jsr add @std/io

Import symbol

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

Add Package

bunx jsr add @std/io

Import symbol

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