Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function writeFileStr
import { writeFileStr } from "https://deno.land/std@0.53.0/fs/write_file_str.ts";

Write the string to file.

Parameters

filename: string

File to write

content: string

The content write to file

Returns

Promise<void>

Promise