Module

std/node/fs.ts>promises.readFile

Deno standard library
Go to Latest
function promises.readFile
import { promises } from "https://dotland.deno.dev/std@0.92.0/node/fs.ts";
const { readFile } = promises;

Parameters

path: string | URL
options: TextOptionsArgument

Returns

Promise<string>

Parameters

path: string | URL
optional
options: BinaryOptionsArgument

Returns

Promise<Uint8Array>