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'): void

Parameters:

ParameterTypeDescription
formatstringThe format to write.
bufferBufferThe buffer to write.
type?'clipboard' | 'selection'The clipboard type.

Returns: void