function writeTextFile
writeTextFile(
path: string | URL,
content: string,
): Task<void, WriteFileError>

Writes a UTF-8 string to a file, creating or overwriting it.

Parameters

path: string | URL
content: string

Return Type

Task<void, WriteFileError>

Usage

import { writeTextFile } from ".";