Properties
A Clipboard property — a Clipboard object on Linux that operates against the selection clipboard instead of the system clipboard, and undefined on all other platforms. It exposes the same read, write, readText, writeText, has, and clear methods as the top-level clipboard module.
Functions
A promise that resolves with true if the clipboard contains data of the specified mimetype, otherwise false. To check for a raw format, eg public/utf8-plain-text, use the electron application/osclipboard custom format (electron application/osclipboard;format="public/utf8-plain-text").
A promise that resolves with an array of ClipboardItem objects containing the clipboard's contents.
Resolves once the data has been written to the clipboard. All entries supplied in a single write() call are committed to the system clipboard atomically.