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:

ParameterTypeDescription
formatstringThe format to write.
bufferBufferThe buffer to write.
type?"clipboard" | "selection" | undefinedThe clipboard type.

Returns: void