Reads text from the clipboard asynchronously.
Uses navigator.clipboard if available. Returns null if unsupported or on error.
navigator.clipboard
null
Clipboard text or null.
const text = await readFromClipboard();console.log(text); Copy
const text = await readFromClipboard();console.log(text);
1.2.0
Reads text from the clipboard asynchronously.
Uses
navigator.clipboard
if available. Returnsnull
if unsupported or on error.