xsel
Simple wrapper for linux xsel.
- If you are not familiar with Linux Clipboard visit http://www.freedesktop.org/wiki/Specifications/ClipboardsWiki/
Install
npm install xsel
Usage
var xsel = await xselconsole // => data was copied to clipboard await xsel
Docs
selection
argument is a String
and can be:
"p"
: PRIMARY
"s"
: SECONDARY
"c"
: CLIPBOARD (default)
await xsel
Save data
to the selection
await xsel
Get data
from the selection
await xselclearselection
Clear the selection
await xsel
Request that the selection be cleared and that
the application owning it delete its contents
await xsel
Do not modify the selections, but make the PRIMARY
and SECONDARY selections persist even after the
programs they were selected in exit.
await xsel
Exchange the PRIMARY and SECONDARY selections