Clipboard allows for the copying and pasting of strings and data to and from the native OS clipboard. It’s accessible via the clipboard global object.

Methods[type, ]callback)

When type is undefined or 'string', returns a String containing utf-8 encoded text from the system clipboard.

Alternatively, if type is 'buffer', a Buffer is returned, containing raw data from the system clipboard.

Clipboard.write(data, callback)

Writes the specified string or Buffer to the system clipboard.