Skip to main content
Deno 2 is finally here 🎉️
Learn more

deno_copy_paste

Docs Tests

Copy/paste functionality for Deno.

Usage

Write/copy raw data

import { write } from "https://deno.land/x/copy_paste/mod.ts";

const input = await Deno.readFile("file_to_copy.png");
await write(input);

Write/copy text

import { writeText } from "https://deno.land/x/copy_paste/mod.ts";

await writeText("text to copy");

Read/paste raw data

import { read } from "https://deno.land/x/copy_paste/mod.ts";

const copiedData = await read();

Read/paste text

import { readText } from "https://deno.land/x/copy_paste/mod.ts";

const copiedText = await readText();

Testing

deno task test