Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/skanehira/deno-clipboard-image

A deno module that write image to, and read image from clipboard.
https://github.com/skanehira/deno-clipboard-image

deno

Last synced: about 2 months ago
JSON representation

A deno module that write image to, and read image from clipboard.

Awesome Lists containing this project

README

        

# deno-clipboard-image
A deno module that write image to, and read image from clipboard.

## Requirements
- xclip(Linux only)

## Usage
```typescript
import { read, write } from "https://deno.land/x/[email protected]/mod.ts";
import { copy } from "https://deno.land/[email protected]/streams/mod.ts";

(async () => {
const image = await Deno.open("test.png");
await write(image);
image.close();

const src = await read();
const out = await Deno.create("image.png");
await copy(src, out);
out.close();
})();
```

## Author
skanehira