EasyClip
Crystal module for clipboard interaction.
Installation
Add to shard.yml
:
dependencies:
easyclip:
github: kojix2/easyclip
Run shards install
Usage
require "easyclip"
# Copy 'text' to clipboard
EasyClip.copy("text")
# Paste text from the clipboard
str = EasyClip.paste
Contributing
- Fork (https://github.com/kojix2/easyclip/fork)
- Feature branch (
git checkout -b new-feature
) - Commit (
git commit -am 'Add feature'
) - Push (
git push origin new-feature
) - Pull request
License
MIT