Module clipboard
Provides access to the system clipboard
Name |
Description |
text |
Set or get the clipboard content as text |
Properties
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
var clipboard = require("clipboard");
// set the clipboard content
clipboard.text = "Hello World!";