Module: clipboard

Provides access to the system clipboard
Source:

Example

import clipboard from 'clipboard'

Members


<static> text

Set or get the clipboard content as text

Set or get the clipboard content as text
get
Replies the clipboard content as text or undefined, if no clipboard content is available or if it can't be converted to a string.
set
Sets the clipboard content
Properties:
Name Type Description
text string clipboard content as text
Source:
Example
import clipboard from 'clipboard'
// set the clipboard content
clipboard.text = 'Hello World!'