clipboard

A simple to use clipboard library, which supports:

It binds to the libclipboard library: https://github.com/jtanx/libclipboard

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      clipboard:
        github: data-niklas/clipboard
  2. Run shards install

Usage

require "clipboard"

success = Clipboard.set_text("Some text")
current_clipboard_text = Clipboard.get_text()
# Now clearing it
Clipboard.clear()

When setting the clipboard content:

Development

TODO Write development instructions here

Contributing

  1. Fork it (https://github.com/data-niklas/clipboard/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors