Skip to main content
Module

x/dtils/fs.ts>readText

The best unofficial library of utilities for Deno applications
Go to Latest
function readText
import { readText } from "https://deno.land/x/dtils@2.6.0/fs.ts";

Read a file as a string. Returns an empty string if the file doesn't exist.

NOTICE: At the next major release, this will return string|null

Parameters

file: string

Returns

Promise<string>