write

fun write(buffer: AllowSharedBufferSource, options: FileSystemReadWriteOptions = definedExternally): UInt53(source)

The write() method of the Files within the origin private file system are not visible to end-users, therefore are not subject to the same security checks as methods running on files within the user-visible file system.

MDN Reference