writeFileSync - Node documentation
function writeFileSync

Usage in Deno

import { writeFileSync } from "node:fs";
writeFileSync(
data: string | ArrayBufferView,
options?: WriteFileOptions,
): void

Returns undefined.

The mode option only affects the newly created file. See open for more details.

For detailed information, see the documentation of the asynchronous version of this API: writeFile.

Parameters

filename or file descriptor

data: string | ArrayBufferView
optional
options: WriteFileOptions

Return Type

void