Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/_fs/_fs_read.ts>readSync

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function readSync
import { readSync } from "https://deno.land/std@0.116.0/node/_fs/_fs_read.ts";

Parameters

fd: number
buffer: Buffer | Uint8Array
offset: number
length: number
position: number | null

Returns

number

Parameters

fd: number
buffer: Buffer | Uint8Array
opt: readSyncOptions

Returns

number

Parameters

fd: number
buffer: Buffer | Uint8Array
optional
offsetOrOpt: number | readSyncOptions
optional
length: number
optional
position: number | null

Returns

number