Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function readFileStr
import { readFileStr } from "https://deno.land/std@0.51.0/fs/read_file_str.ts";

Read file and output it as a string.

Parameters

filename: string

File to read

optional
opts: ReadOptions = [UNSUPPORTED]

Read options

Returns

Promise<string>