# clipboard.js

JavaScript library that copies text to the clipboard when a user activates an element, with no Flash dependency.

STUB. This software has no release or pre-release in four years, or its project site no longer shows it, so it is not part of the register, not counted and not indexed. It will be checked again.

Source: https://findsoftware.frbit.cloud/clipboard-js/
Last reviewed: 2026-11-04
Listed since: 2026-11-04

## Record

### Links

- home: https://clipboardjs.com/
- repository: https://github.com/zenorocha/clipboard.js

### Identity

- status: stub
- maintainer: Zeno Rocha
- maintainerType: individual
- parent: unknown
- firstRelease: 2015
- hqCountry: unknown

### Kind

- category: ui-library
- hosting: not applicable
- language: javascript
- runtime: unknown
- runtimeMin: not applicable
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 2
- latestReleaseDate: 2022-05-04

### Adoption

- githubStargazers: 34090
- packagistDownloads: not applicable
- npmWeeklyDownloads: 2528595
- contributors: 52
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 148442
- dependentPackages: 3292

### Sources

- urls: https://clipboardjs.com/ (read 2026-11-04)
- urls: https://api.github.com/repos/zenorocha/clipboard.js (read 2026-11-04)
- maintainer: https://github.com/zenorocha/clipboard.js/blob/master/LICENSE (read 2026-11-04)
- maintainerType: https://github.com/zenorocha/clipboard.js/blob/master/LICENSE (read 2026-11-04)
- language: https://api.github.com/repos/zenorocha/clipboard.js (read 2026-11-04)
- firstRelease: https://api.github.com/repos/zenorocha/clipboard.js/releases (read 2026-11-04)
- installMethod: https://github.com/zenorocha/clipboard.js/blob/master/readme.md (read 2026-11-04)
- installMethod: https://github.com/zenorocha/clipboard.js/blob/master/readme.md (read 2026-11-04)
- installMethod: https://github.com/zenorocha/clipboard.js/blob/master/readme.md (read 2026-11-04)
- license: https://api.github.com/repos/zenorocha/clipboard.js (read 2026-11-04)
- licenseModel: https://api.github.com/repos/zenorocha/clipboard.js (read 2026-11-04)
- currentMajor: https://api.github.com/repos/zenorocha/clipboard.js/releases/latest (read 2026-11-04)
- latestReleaseDate: https://api.github.com/repos/zenorocha/clipboard.js/releases/latest (read 2026-11-04)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-10-26:2026-11-01/clipboard (read 2026-11-04)
- githubStargazers: https://api.github.com/repos/zenorocha/clipboard.js (read 2026-11-04)
- contributors: https://api.github.com/repos/zenorocha/clipboard.js/contributors (read 2026-11-04)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/clipboard (read 2026-11-04)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/clipboard (read 2026-11-04)

## Notes

clipboard.js copies text to the clipboard when a user clicks an element. The text can come from a data attribute, from the value or text of another element, or from a function that returns a string or a node. A cut action removes the text from an input or textarea instead. The library attaches one listener through event delegation and fires success and error events for the page to respond to. It includes no CSS or tooltip; the README suggests showing the feedback in the page.

## Worth knowing

Copying depends on the Selection and execCommand browser APIs. The README says the library degrades for older browsers, where the page should tell the visitor to press the keyboard shortcut, because the text is already selected.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
