{"id":27811955,"url":"https://github.com/tktcorporation/clip-filepaths","last_synced_at":"2026-02-02T04:12:08.624Z","repository":{"id":288941184,"uuid":"969483475","full_name":"tktcorporation/clip-filepaths","owner":"tktcorporation","description":"📋 Copy multiple file paths (including images) to clipboard - A cross platform utility.","archived":false,"fork":false,"pushed_at":"2025-08-11T06:00:41.000Z","size":1376,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T23:14:50.751Z","etag":null,"topics":["clipboard","electron","linux","macos","napi-rs","rust","typescript","windows"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tktcorporation.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2025-04-20T08:51:04.000Z","updated_at":"2025-08-11T05:59:34.000Z","dependencies_parsed_at":"2025-04-20T16:22:36.854Z","dependency_job_id":"c3739467-22a2-4370-962f-e8bdd74c5013","html_url":"https://github.com/tktcorporation/clip-filepaths","commit_stats":null,"previous_names":["tktcorporation/electron-pan-clip"],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/tktcorporation/clip-filepaths","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tktcorporation%2Fclip-filepaths","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tktcorporation%2Fclip-filepaths/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tktcorporation%2Fclip-filepaths/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tktcorporation%2Fclip-filepaths/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tktcorporation","download_url":"https://codeload.github.com/tktcorporation/clip-filepaths/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tktcorporation%2Fclip-filepaths/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272827445,"owners_count":24999808,"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-08-30T02:00:09.474Z","response_time":77,"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","electron","linux","macos","napi-rs","rust","typescript","windows"],"created_at":"2025-05-01T12:00:59.641Z","updated_at":"2026-02-02T04:12:03.599Z","avatar_url":"https://github.com/tktcorporation.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clip-filepaths\n\n📋 Copy and read file paths and text from clipboard - A cross platform utility.\n\n\u003cimg height=\"100\" src=\"https://github.com/user-attachments/assets/836b665b-5a53-4b22-b8dc-4cc77a106999\" \u003e\n\n## Overview\n\nThis library provides functionality for copying and reading file paths and text from the clipboard in Electron applications. It supports Windows, macOS, and Linux platforms. \n\nBuilt with [napi-rs](https://napi.rs/) and Rust, this library offers:\n- **Multiple file path support**: Copy and read multiple file paths at once\n- **Text support**: Read text from the clipboard\n- Full TypeScript support\n- Cross-platform compatibility\n\n## Motivation\n\nWhen developing Electron applications, I needed a way to copy multiple photo file paths to the clipboard at once and read content from the clipboard. This library was created to provide a simple solution for batch file path operations, making photo management and other tasks more efficient.\n\n## Installation\n\n```bash\nnpm install clip-filepaths\n```\n\n## Usage\n\n### Copying File Paths\n\n```typescript\nimport { writeClipboardFilePaths } from 'clip-filepaths';\n\n// Copy file paths to clipboard\nconst filePaths: string[] = ['/path/to/file1.txt', '/path/to/file2.jpg'];\nwriteClipboardFilePaths(filePaths);\nconsole.log('File paths copied to clipboard successfully');\n```\n\n### Reading Clipboard Content\n\n```typescript\nimport { readClipboardFilePaths } from 'clip-filepaths';\n\n// Read both file paths and text from clipboard\nconst content = readClipboardFilePaths();\nconsole.log('File paths:', content.filePaths);\nconsole.log('Text:', content.text);\n\n// Check if clipboard has file paths\nif (content.filePaths.length \u003e 0) {\n  console.log('Clipboard contains file paths');\n}\n\n// Check if clipboard has text\nif (content.text) {\n  console.log('Clipboard contains text');\n}\n```\n\n### Clear Clipboard\n\n```typescript\nimport { writeClipboardFilePaths } from 'clip-filepaths';\n\n// Clear clipboard content by passing an empty array\nwriteClipboardFilePaths([]);\n```\n\n## Demo\n\nA demo application is available for testing the functionality. If you want to see it in action, check out the following repository:\n\n- [copy-file-paths-electron](https://github.com/tktcorporation/copy-file-paths-electron) - Demo Electron application\n\n## Platform Support\n\n- ✅ macOS: Supported and tested\n- ✅ Windows: Supported and tested\n- ⚠️ Linux: Supported but not yet tested\n\n## Contributing\n\nWe welcome contributions! Please read our [Contributing Guidelines](./docs/CONTRIBUTING.md) before submitting pull requests.\n\n## Support\n\nIf you encounter any issues or have questions, please:\n1. Check the [existing issues](https://github.com/tktcorporation/clip-filepaths/issues)\n2. Create a new issue if your problem hasn't been reported\n\n## Related Projects\n\n- [napi-rs](https://napi.rs/) - Node.js native addon framework\n- [Electron](https://www.electronjs.org/) - Cross-platform desktop application framework\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.\n\n## Acknowledgments\n\n- Thanks to all contributors who have helped improve this project\n- Special thanks to the napi-rs team for their excellent framework\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftktcorporation%2Fclip-filepaths","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftktcorporation%2Fclip-filepaths","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftktcorporation%2Fclip-filepaths/lists"}