Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 696 Bytes

File metadata and controls

19 lines (13 loc) · 696 Bytes

Copy to Clipboard

This function is used to copy text to the clipboard.

Signature

copyToClipboard(data: string, options: object): Promise

Arguments

Uses the copy-to-clipboard library

Argument Name Description
data Data that would be copied
options.debug Boolean. Optional. Enable output to console
options.format String. Optional. Set the mime type of the text being copied