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

x/deno/std/fs/mod.ts>readFileStr

A modern runtime for JavaScript and TypeScript.
Go to Latest
function readFileStr
import { readFileStr } from "https://deno.land/x/deno@v0.28.0/std/fs/mod.ts";

Read file and output it as a string.

Parameters

filename: string

File to read

optional
opts: ReadOptions = [UNSUPPORTED]

Read options

Returns

Promise<string>