GitShow/sindresorhus/clipboard-cli
sindresorhus

clipboard-cli

Access the system clipboard (copy/paste)

by sindresorhus
Star on GitHubForknpm

JavaScript

509 stars12 forks3 contributorsQuiet · 5mo agoSince 2016v5.0.0MIT

Meet the team

See all 3 on GitHub →
sindresorhus
sindresorhus17 contributions
Hurtak
Hurtak1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
jetwiwo
version 5.0.0 seems to lose data on large text copies in WindowsClosedIssue

Copying large text files to the clipboard seems to truncate VERY early and also lose text from the middle of the copy. To reproduce this I can do the following: My most recent test returned 601 lines (our of 9000) The first line read I checked that every line in the input file is I am running: windows 11 (Build 26200) git bash (git version 2.51.1.windows.1) node 22 (22.20.0)

jetwiwo · 5mo ago
chtenb
The CLI seems to add a newline to the contents when copyingClosedIssue
chtenb · 1y ago
AndreasArvidsson
Added timeout for getStdin and trim trailing new linesMergedPR

Added timeout to getStdin: In some CLI the check isn't enough. Some CLI like git bash on windows just hang on the getStdin call. Solved this by using a getStdin function with support for timeout. Removed trailing new lines: Trying to paste something into the cli and having it paste a new line which runs an uncompleted command is not great. Keep new lines in the middle to support copying multi line text, but remove trailing new lines to prevent unnecessary commands to run.

AndreasArvidsson · 5y ago
Structured data for AI agents

Repository: sindresorhus/clipboard-cli. Description: Access the system clipboard (copy/paste) Stars: 509, Forks: 12. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v5.0.0 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 5mo ago. Community health: 71%. Top contributors: sindresorhus, Hurtak, Richienb.

·@ofershap

Replace github.com with gitshow.dev