|
|
há 3 anos atrás | |
|---|---|---|
| .. | ||
| fallbacks | há 3 anos atrás | |
| lib | há 3 anos atrás | |
| node_modules | há 3 anos atrás | |
| browser.js | há 3 anos atrás | |
| index.d.ts | há 3 anos atrás | |
| index.js | há 3 anos atrás | |
| license | há 3 anos atrás | |
| package.json | há 3 anos atrás | |
| readme.md | há 3 anos atrás | |
Access the system clipboard (copy/paste)
Cross-platform. Supports: macOS, Windows, Linux, OpenBSD, FreeBSD, Android with Termux, modern browsers.
$ npm install clipboardy
const clipboardy = require('clipboardy');
clipboardy.writeSync('🦄');
clipboardy.readSync();
//=> '🦄'
Write (copy) to the clipboard asynchronously. Returns a Promise.
Type: string
The text to write to the clipboard.
Read (paste) from the clipboard asynchronously. Returns a Promise.
Write (copy) to the clipboard synchronously.
Doesn't work in browsers.
Type: string
The text to write to the clipboard.
Read (paste) from the clipboard synchronously.
Doesn't work in browsers.
The Linux binary is just a bundled version of xsel. The source for the Windows binary can be found here.