Skip to main content
Module

std/fs/mod.ts>writeFileStr

Deno standard library
Go to Latest
function writeFileStr
import { writeFileStr } from "https://deno.land/std@0.52.0/fs/mod.ts";

Write the string to file.

Parameters

filename: string

File to write

content: string

The content write to file

Returns

Promise<void>

Promise