Skip to main content
Module

std/node/fs.ts>promises.readFile

Deno standard library
Go to Latest
function promises.readFile
import { promises } from "https://deno.land/std@0.101.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>