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

x/dtils/fs.ts>writeText

The best unofficial library of utilities for Deno applications
Go to Latest
function writeText
import { writeText } from "https://deno.land/x/dtils@2.3.1/fs.ts";

Write text to file. Creates the directory if it doesn't exist

Parameters

file: string
text: string

Returns

Promise<void>