Skip to main content
The Deno 2 Release Candidate is here
Learn more
function writeTextFile
import { writeTextFile } from "https://deno.land/x/macromania_assets@v0.2.0/deps.ts";

Write the content string to the given path, by default creating a new file if needed, else overwriting.

See https://deno.land/api@v1.40.3?unstable=true&s=Deno.writeTextFile

Parameters

ctx: Context
path: string | URL
content: string
optional
options: Deno.WriteFileOptions