Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/node/fs.ts>appendFileSync

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function appendFileSync
Re-export
import { appendFileSync } from "https://deno.land/std@0.74.0/node/fs.ts";

TODO: Also accept 'data' parameter as a Node polyfill Buffer type once these are implemented. See https://github.com/denoland/deno/issues/3403

Parameters

pathOrRid: string | number | URL
data: string | Uint8Array
optional
options: Encodings | WriteFileOptions