# tinyclip

> A tiny utility to interact with the system clipboard.

Latest version **1.0.1** (published 2026-07-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install tinyclip
pnpm add tinyclip
yarn add tinyclip
bun add tinyclip
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2026-07-28 |
| First published | 2026-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^16.14.0 \|\| >= 17.3.0 |
| Dependencies | 0 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 61 |
| Author | Tinylibs Maintainers |
| Maintainers | 43081j, florian-lefebvre |
| Keywords | clipboard, copy, paste |

## Links

- npm: https://www.npmjs.com/package/tinyclip
- Repository: https://github.com/tinylibs/tinyclip
- Homepage: https://github.com/tinylibs/tinyclip#readme
- Issues: https://github.com/tinylibs/tinyclip/issues
- npm.io page: https://npm.io/package/tinyclip

## Recent versions

- 1.0.1 (latest) — 2026-07-28
- 1.0.0 — 2026-07-24
- 0.1.15 — 2026-06-22
- 0.1.14 — 2026-06-03
- 0.1.13 — 2026-05-27
- 0.1.12 — 2026-03-06
- 0.1.11 — 2026-03-05
- 0.1.10 — 2026-03-04
- 0.1.9 — 2026-03-04
- 0.1.8 — 2026-03-02
- 0.1.6 — 2026-02-25
- 0.0.1 — 2026-02-23

## README

# 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](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API) instead of a dependency.

## Install

```sh
npm install tinyclip
```

## Usage

```js
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](./LICENSE)

---
_Source: https://npm.io/package/tinyclip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
