Module

std/node/fs.ts>readFileSync

Deno standard library
Go to Latest
function readFileSync
import { readFileSync } from "https://dotland.deno.dev/std@0.177.0/node/fs.ts";

Parameters

path: string | URL
opt: TextOptionsArgument

Returns

string

Parameters

path: string | URL
optional
opt: BinaryOptionsArgument

Returns

Buffer
import readFileSync
import { readFileSync } from "https://dotland.deno.dev/std@0.177.0/node/fs.ts";