Skip to content

Function: writeText()

Documentation / @wtf/platform-fs / files / writeText

function writeText(
platform,
path,
data
): Promise<FileSystemFileHandle>;

Defined in: packages/platform-fs/src/files.ts:114

Writes data to the file of path, whole, through its writable, which takes the file’s place as it closes: made where it is not there, with each folder on the way. A failure leaves the file as it was.

Parameters

ParameterType
platformFilesPlatform
pathstring
datastring | Uint8Array<ArrayBufferLike>

Returns

Promise<FileSystemFileHandle>