Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/fs/write_file_str.ts>writeFileStrSync

A modern runtime for JavaScript and TypeScript.
Go to Latest
function writeFileStrSync
import { writeFileStrSync } from "https://deno.land/x/deno@v0.28.0/std/fs/write_file_str.ts";

Write the string to file synchronously.

Parameters

filename: string

File to write

content: string

The content write to file

Returns

void

void