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

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

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

Read file synchronously and output it as a string.

Parameters

filename: string

File to read

optional
opts: ReadOptions = [UNSUPPORTED]

Read options

Returns

string