GT2/GT2-Android/node_modules/clipboardy
Ren Ren Juan c5fd23b54f Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
..
fallbacks Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
lib Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
node_modules/execa Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
index.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
license Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
package.json Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
readme.md Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11: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