async-clipboard-action
v0.0.2
Published
Very minimal NPM package that provides simple API for asynchronously copying/pasting to/from system clipboard along with callback for logging success/failure messages and a few more similar features.
Downloads
1
Readme
async-clipboard-action
Very minimal NPM package that provides simple API for asynchronously copying/pasting to/from system clipboard along with callback for logging success/failure messages and a few more similar features.
Install
$ npm install async-clipboard-action
Usage
const asyncClipboardAction = require('async-clipboard-action');
asyncClipboardAction('unicorns');
//=> 'unicorns & rainbows'
API
asyncClipboardAction(input, options?)
input
Type: string
Lorem ipsum.
options
Type: object
foo
Type: boolean
Default: false
Lorem ipsum.
CLI
$ npm install --global async-clipboard-action
$ async-clipboard-action --help
Usage
async-clipboard-action [input]
Options
--foo Lorem ipsum [Default: false]
Examples
$ async-clipboard-action
unicorns & rainbows
$ async-clipboard-action ponies
ponies & rainbows