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

x/xdg/vendor/types/deno.d.ts>Deno.WriteFileOptions

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
interface Deno.WriteFileOptions
import { type Deno } from "https://deno.land/x/xdg@v10.5.1/vendor/types/deno.d.ts";
const { WriteFileOptions } = Deno;

Options for writing to a file.

Properties

optional
append: boolean

Defaults to false. If set to true, will append to a file instead of overwriting previous contents.

optional
create: boolean

Sets the option to allow creating a new file, if one doesn't already exist at the specified path (defaults to true).

optional
mode: number

Permissions always applied to file.