zenorocha/clipboard.js

:scissors: Modern copy to clipboard. No Flash. Just 3kb gzipped :clipboard:

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 17 seconds ago
Added to GitGenius on September 1st, 2026
Created on September 18th, 2015
Open Issues & Pull Requests: 16 (+0)
GitHub issues: Enabled
Number of forks: 3,910
Total Stargazers: 34,117 (+0)
Total Subscribers: 416 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 86.7 days
Mean response time: 163.8 days
90th percentile: 350.4 days
Tracked items: 12

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 10
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 919 days
Stale 30+ days: 10
Stale 90+ days: 10

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • stale (9)
  • bug (7)
  • proposal (5)
  • documentation (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

clipboard.js is a lightweight JavaScript library that provides modern copy-to-clipboard functionality without requiring Flash or heavy frameworks.

The library solves the problem of making clipboard operations simple and dependency-free. Rather than relying on Flash or complex configuration, it uses the native Clipboard API and HTML5 data attributes to enable copying and cutting text. The approach leverages event delegation to handle multiple trigger elements efficiently, replacing many individual event listeners with a single delegated listener to minimize memory consumption.

Developers should choose this tool if they need straightforward copy-to-clipboard functionality in a minimal package. It suits projects where keeping bundle size small matters and Flash dependencies are unacceptable. The library supports three primary use cases: copying text from another element via a data-clipboard-target attribute, cutting text from input or textarea elements via a data-clipboard-action attribute, and copying arbitrary text from a data-clipboard-text attribute. It can be instantiated with a DOM selector, individual HTML element, or list of elements, and is available through npm or direct download.

The project maintains an active build pipeline with continuous integration checks. Development activity shows consistent attention to the codebase with regular updates and maintenance of the repository structure.