Skip to main content
Module

x/copy_paste/mod.ts>readText

Copy/paste functionality for Deno. Compatible with macOS, Windows and Linux.
Latest
function readText
import { readText } from "https://deno.land/x/copy_paste@v1.1.3/mod.ts";

Reads/pastes text from the system clipboard.

const pastedText = await readText();

Returns

Promise<string>