Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/skanehira/deno-clipboard-image
- Owner: skanehira
- License: mit
- Created: 2021-08-21T17:46:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-05T23:16:48.000Z (over 2 years ago)
- Last Synced: 2024-12-17T02:32:32.397Z (2 months ago)
- Topics: deno
- Language: TypeScript
- Homepage:
- Size: 27.3 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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