sindresorhus

clipboard-cli

Access the system clipboard (copy/paste)

by sindresorhus

JavaScript

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
jetwiwo

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 · 8mo ago
AndreasArvidsson

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: 510, Forks: 13. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v5.0.0 (1y ago). Open PRs: 0, open issues: 0. Last activity: 8mo ago. Community health: 71%. Top contributors: sindresorhus, Hurtak, Richienb.