tinyclip
A tiny utility to interact with the system clipboard.
Last updated 2 months ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install tinyclip 
SYNC missed versions from official npm registry.

tinyclip 📋

A tiny cross-platform clipboard library. Uses native OS clipboard functionality on Node.js.

[!NOTE] In the browser, you can use the native Clipboard API instead of a dependency.

Install

npm install tinyclip

Usage

import {readText, writeText} from 'tinyclip';

await writeText('hello world');
const text = await readText();

API

readText(): Promise<string>

Reads text from the clipboard.

writeText(text: string): Promise<void>

Writes text to the clipboard.

License

MIT

Current Tags

  • 1.0.3                                ...           latest (2 months ago)

13 Versions

  • 1.0.3                                ...           2 months ago
  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
  • 0.1.15                                ...           5 months ago
  • 0.1.14                                ...           6 months ago
  • 0.1.13                                ...           6 months ago
  • 0.1.12                                ...           9 months ago
  • 0.1.11                                ...           9 months ago
  • 0.1.10                                ...           9 months ago
  • 0.1.9                                ...           9 months ago
  • 0.1.8                                ...           9 months ago
  • 0.1.6                                ...           9 months ago
  • 0.0.1                                ...           9 months ago
Downloads
Total 13
Today 0
This Week 0
This Month 13
Last Day 0
Last Week 13
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE