easyclip
Version, currently 0.1.05 versions
- 0.2.0latestJun 12, 2026
- 0.1.3not indexedJun 19, 2026
- 0.1.2not indexedJun 19, 2026
- 0.1.1not indexedJun 19, 2026
- 0.1.0not indexedJun 19, 2026
github.com/kojix2/easyclip
Easy copy and paste for Crystal
2 stars
2 dependents
License: MIT
Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
easyclip:
github: kojix2/easyclip
version: ~> 0.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# EasyClip
[](https://github.com/kojix2/easyclip/actions/workflows/test.yml)
[](https://tokei.kojix2.net/github/kojix2/easyclip)
Crystal module for clipboard interaction.
## Installation
Add to `shard.yml`:
```yaml
dependencies:
easyclip:
github: kojix2/easyclip
```
Run `shards install`
## Usage
```crystal
require "easyclip"
# Copy 'text' to clipboard
EasyClip.copy("text")
# Paste text from the clipboard
str = EasyClip.paste
```
### Linux
Detects the current session and available tools at runtime:
- Wayland: `wl-copy` / `wl-paste`, then X11/XWayland fallbacks
- X11 copy: `xsel`
- X11 paste: `xclip`, then `xsel`
- WSL: `clip.exe` (copy), `powershell.exe` (paste)
- Termux: `termux-clipboard-set` / `termux-clipboard-get`
Install what fits your session, e.g. `sudo apt install wl-clipboard xclip xsel`.
Commands come from a fixed allowlist, run without a shell, and receive text via stdin.
### macOS
Uses the native `NSPasteboard` API directly. It does not spawn `pbcopy` or
`pbpaste`.
### Windows
Uses the native Win32 clipboard API (`CF_UNICODETEXT`): no child process, no
trailing-newline quirk. WSL runs as a Linux binary and uses the Linux fallbacks
above instead.
## Contributing
1. Fork (<https://github.com/kojix2/easyclip/fork>)
2. Feature branch (`git checkout -b new-feature`)
3. Commit (`git commit -am 'Add feature'`)
4. Push (`git push origin new-feature`)
5. Pull request
## License
MIT
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Jun 19, 2026
- Commit
6d4f50d874dc- Indexed
- not yet
Dependents
Repository
github.com/kojix2/easyclip
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 5