Skip to content

ElectronClipboard.writeBuffer method

ElectronClipboard › writeBuffer

Unofficial

Writes a buffer to the clipboard as the specified format.

Signature:

writeBuffer(format: string, buffer: Buffer, type?: "clipboard" | "selection" | undefined): void

Parameters:

Parameter Type Description
format string The format to write.
buffer Buffer The buffer to write.
type? "clipboard" | "selection" | undefined The clipboard type.

Returns: void