GitShow/sindresorhus/copy-text-to-clipboard
sindresorhus

copy-text-to-clipboard

Copy text to the clipboard in modern browsers (0.2 kB)

by sindresorhus
Star on GitHubForknpm

JavaScript

1.0k stars222 forks11 contributorsQuiet · 6mo agoSince 2017v3.2.2MIT

Meet the team

See all 11 on GitHub →
sindresorhus
sindresorhus30 contributions
BendingBender
BendingBender2 contributions
Richienb
Richienb2 contributions
fregante
fregante1 contribution
Haraldson
Haraldson1 contribution
jgierer12
jgierer121 contribution
chinchang
chinchang1 contribution
madneal
madneal1 contribution

Languages

View on GitHub →
JavaScript50.7%
HTML45.2%
TypeScript4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
sonicdoe
Switch to Clipboard APIClosedIssue

Chrome, Edge, Firefox, and Safari (“modern browsers”) now support the Clipboard API, allowing you to copy text to the clipboard using . Should this package switch to the Clipboard API (or be deprecated in favor of it)?

sonicdoe · 6mo ago
spuky
Changes in 3.2.1 lead to droped Whitespace in DocsaurusClosedIssue

https://github.com/sindresorhus/copy-text-to-clipboard/commit/a7e258799aeeb754c610accdb626be779a8a75c4 seem to break copynig code including Whitespace in docsaurus see: https://github.com/facebook/docusaurus/issues/11414 It might have to do with declaring "sideEffects": false, in package json... or the added IOS styles

spuky · 11mo ago
christopheSeeka
Not working on IOS 15.1 Safari / ChromeClosedIssue

I installed the lib and it work well on windows / android but it doesn't seem to copy anything on IOS 15.1 ipad. Is it a known issue or is it supposed to work on latest IOS versions with Chrome and Safari?

christopheSeeka · 11mo ago
Structured data for AI agents

Repository: sindresorhus/copy-text-to-clipboard. Description: Copy text to the clipboard in modern browsers (0.2 kB) Stars: 1045, Forks: 222. Primary language: JavaScript. Languages: JavaScript (50.7%), HTML (45.2%), TypeScript (4%). License: MIT. Latest release: v3.2.2 (11mo ago). Open PRs: 0, open issues: 0. Last activity: 6mo ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, Richienb, fregante, Haraldson, jgierer12, chinchang, madneal, prichodko, privatenumber.

·@ofershap

Replace github.com with gitshow.dev