Module

Clipboardy

This library provides bindings for clipboardy, which allows you to manage the clipboard in Mac, Windows and Linux machines using Node. You can use the async version using Aff

main :: Effect Unit
main =
  launchAff_ do
    -- copy
    write "🦄"
    -- paste
    val <- read
    liftEffect $ log val

Or the sync version using Effect

main :: Effect Unit
main = do
  -- copy
  writeSync "🦄"
  -- paste
  val <- readSync
  log val

#read

#write

#readSync

#writeSync

Modules