sudodoki/copy-to-clipboard
Copy stuff into clipboard from your browser using JS observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 96
- Release rhythm 81
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 4120
- days_rel: 131
- days_push: 29
- n_releases_24m: 2
Adoption not part of the score
1400 stars · 126 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small JavaScript library for copying text to the clipboard in the browser, using the Async Clipboard API with automatic fallback to document.execCommand('copy'). It supports copying rich text (text/html), custom ClipboardItem construction, and an optional prompt-based last resort.
Use cases
- copy text to clipboard in the browser
- copy rich text html to clipboard with plain text fallback
- clipboard copy fallback for non-https contexts
- copy multiline or tab-separated data to clipboard
- copy text from modal dialogs or fullscreen elements
- add a copy button to a web app
When to avoid
- you are building an Electron app (use Electron's clipboard API instead)
- you need clipboard read access, not just writing
- you are in a Node.js/server environment with no DOM
Facets
library · maturity active
developer-tools gui web-development frontend developer-tools browser clipboard copy-to-clipboard browser-api execcommand-fallback rich-text-copy javascript nodejs
3 sources
- readme: https://github.com/sudodoki/copy-to-clipboard · fetched 2026-08-28 · bf54730f65cd
- homepage: http://sudodoki.github.io/copy-to-clipboard/example/ · fetched 2026-08-29 · 33c9d3c4a83b
- registry_npm: https://registry.npmjs.org/copy-to-clipboard · fetched 2026-08-29 · 984a2f9ba490
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sudodoki/copy-to-clipboard | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="sudodoki/copy-to-clipboard")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem