Skip to main content

readClipboardText

A function that reads text data stored in the Clipboard.


Code

🔗 View source code


Interface

typescript
function readClipboardText(): Promise<string>

Usage

typescript
import { readClipboardText } from '@modern-kit/utils';

const result = await readClipboardText();
// Reads the text stored in the clipboard.