lihai 8d6c751f49 feat: push 2 anos atrás
..
fallbacks 8d6c751f49 feat: push 2 anos atrás
lib 8d6c751f49 feat: push 2 anos atrás
index.d.ts 8d6c751f49 feat: push 2 anos atrás
index.js 8d6c751f49 feat: push 2 anos atrás
license 8d6c751f49 feat: push 2 anos atrás
package.json 8d6c751f49 feat: push 2 anos atrás
readme.md 8d6c751f49 feat: push 2 anos atrás

readme.md

clipboardy Build Status

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(text)

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

text

Type: string

The text to write to the clipboard.

.read()

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

.writeSync(text)

Write (copy) to the clipboard synchronously.

text

Type: string

The text to write to the clipboard.

.readSync()

Read (paste) from the clipboard synchronously.

Related

License

MIT © Sindre Sorhus