Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/fs/mod.ts>writeFileStr

Deno standard library
Go to Latest
function writeFileStr
import { writeFileStr } from "https://deno.land/std@v0.40.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