GT2/GT2-iOS/node_modules/clipboardy
Ren Ren Juan 30eef7d036 correct tree err 2018-02-12 17:26:06 +00:00
..
fallbacks correct tree err 2018-02-12 17:26:06 +00:00
lib correct tree err 2018-02-12 17:26:06 +00:00
node_modules/execa correct tree err 2018-02-12 17:26:06 +00:00
index.js correct tree err 2018-02-12 17:26:06 +00:00
license correct tree err 2018-02-12 17:26:06 +00:00
package.json correct tree err 2018-02-12 17:26:06 +00:00
readme.md correct tree err 2018-02-12 17:26:06 +00:00

readme.md

clipboardy Build Status: macOS & Linux Build status: Windows

Access the system clipboard (copy/paste)

Cross-platform. Supports: macOS, Windows, Linux, OpenBSD, FreeBSD, Android with Termux.

Install

$ npm install clipboardy

Usage

const clipboardy = require('clipboardy');

clipboardy.writeSync('🦄');

clipboardy.readSync();
//=> '🦄'

API

clipboardy

.write(input)

Write (copy) to the clipboard asynchronously. Returns a Promise.

input

Type: string

.read()

Read (paste) from the clipboard asynchronously. Returns a Promise.

.writeSync(input)

Write (copy) to the clipboard synchronously.

input

Type: string

.readSync()

Read (paste) from the clipboard synchronously.

License

MIT © Sindre Sorhus