{"id":17720089,"url":"https://github.com/theden/gcopy","last_synced_at":"2025-10-24T07:17:22.708Z","repository":{"id":63855629,"uuid":"570932989","full_name":"TheDen/gcopy","owner":"TheDen","description":"Copy data to your clipboard via the command line (including images, archive files, videos etc.) 📋 ","archived":false,"fork":false,"pushed_at":"2025-05-15T10:25:53.000Z","size":3710,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-15T11:39:59.754Z","etag":null,"topics":["clipboard","command-line","macos","pbcopy","terminal"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheDen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-11-26T15:51:42.000Z","updated_at":"2025-05-15T10:27:42.000Z","dependencies_parsed_at":"2022-11-27T17:15:43.191Z","dependency_job_id":"33297837-5750-492f-842f-6589065e1392","html_url":"https://github.com/TheDen/gcopy","commit_stats":{"total_commits":81,"total_committers":2,"mean_commits":40.5,"dds":0.04938271604938271,"last_synced_commit":"af9c6276c55105fb0c182742f881e5db4afcd58b"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/TheDen/gcopy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fgcopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fgcopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fgcopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fgcopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheDen","download_url":"https://codeload.github.com/TheDen/gcopy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2Fgcopy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280756563,"owners_count":26385360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clipboard","command-line","macos","pbcopy","terminal"],"created_at":"2024-10-25T15:25:52.890Z","updated_at":"2025-10-24T07:17:22.674Z","avatar_url":"https://github.com/TheDen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# gcopy\n\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"copy Logo\" src=\"https://raw.githubusercontent.com/TheDen/gcopy/main/.github/logo.png\" /\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n![Go Version](https://img.shields.io/github/go-mod/go-version/TheDen/gcopy?style=flat-square\u0026logo=go)\n[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square\u0026logo=go)](https://pkg.go.dev/github.com/TheDen/gcopy)\n[![Prettier](https://img.shields.io/badge/Prettier-%23F7B93E.svg?style=flat-square\u0026logo=prettier\u0026logoColor=black)](https://github.com/prettier/prettier)\n[![GitHub Release](https://img.shields.io/github/v/release/TheDen/gcopy?style=flat-square\u0026logo=github)](https://github.com/TheDen/gcopy/releases/latest)\n[![CI status](https://img.shields.io/github/actions/workflow/status/TheDen/gcopy/ci.yaml?branch=main\u0026style=flat-square\u0026logo=github)](https://github.com/TheDen/gcopy/actions?query=branch%3Amain)\n[![License](https://img.shields.io/github/license/TheDen/gcopy?style=flat-square)](/LICENCE)\n\n\u003c/div\u003e\n\n`gcopy` (global copy) is a command line tool that copies data to your clipboard on MacOS.\n\nIt does what `pbcopy` does but with some extra features:\n\n- Works with images, so copied images can be pasted in other applications\n- Accepts arbitrary `STDIN` via a pipe\n- If a filename is passed as an argument it'll copy the data as though you hit `CMD+C` via `Finder`, allowing pasting of files (PDFs, archive files, videos etc.) to other programs\n- Has an optional flag to copy the absolute pathname of a file or folder to the clipboard\n- Written in Go, deployed as a multi-arch static binary\n- Works as a drop-in replacement for `pbcopy` since it extends its features\n\n![gcopy](./gcopy-usage-example.gif)\n\n# Install\n\n## Via `go install`\n\n```shell\ngo install github.com/TheDen/gcopy@latest\n```\n\n## Brew\n\nTo install via `brew`\n\n```shell\nbrew tap theden/gcopy\nbrew install gcopy\n```\n\n# Aliasing\n\n`gcopy` can be used as a drop-in replacement for `pbcopy`. To do this, add the `alias` into your `.bashrc` or similar\n\n```shell\nalias pbcopy='gcopy'\n```\n\n# Usage\n\n## Overview\n\n```bash\nusage: gcopy [file] [STDIN] [-h|--help] [-v|--version] [-p|--path]\n\n                            gcopy: copy content to the clipboard\n\nArguments:\n\n  -h  --help     Print help information\n  -v  --version  Current version\n  -p  --path     Copy (and show) the absolute pathname of a file or folder to\n                 the clipboard\n```\n\n## Copying to clipboard via STDIN\n\nWorks with text or arbitrary data\n\n```shell\ncat main.go | gcopy\n# or\ngcopy \u003c main.go\n```\n\nImages can also be copied via pipes, and then pasted as images to GUI applications\n\n```shell\ncat image.png | gcopy\n# or\ngcopy \u003c image.png\n```\n\n## Passing in files to copy to the clipboard\n\n```shell\ngcopy main.go\n```\n\nSimilarly for images\n\n```shell\ngcopy image.png\n```\n\nOr any other type of file\n\n```shell\ngcopy backups.zip\n```\n\nCopying via this method will allow you to paste non-text data in other applications\n\n## Getting the absolute path of a file or folder\n\n```shell\ngcopy -p .bashrc\n/Users/den/.bashrc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheden%2Fgcopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheden%2Fgcopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheden%2Fgcopy/lists"}