Skip to main content

writeFileSync

function writeFileSync
Jump to headingwriteFileSync(
data: string | ArrayBufferView,
options?: WriteFileOptions,
): void

Deno compatibility

Missing utf16le, latin1 and ucs2 encoding.

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 Jump to heading

filename or file descriptor

Jump to headingdata: string | ArrayBufferView

Return Type Jump to heading

void
Back to top