Represents the clipboard used for copying and pasting in Atom.
An instance of this class is always available as the atom.clipboard
global.
atom.clipboard.write('hello')
console.log(atom.clipboard.read()) // 'hello'
Write the given text to the clipboard.
The metadata associated with the text is available by calling ::readWithMetadata.
Argument | Description |
---|---|
|
The String to store. |
|
optional
The additional info to associate with the text. |
Write the given text to the macOS find pasteboard