Last 12 weeks · 0 commits
4 of 6 standards met
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)
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.
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.