lihai 8d6c751f49 feat: push | 2 years ago | |
---|---|---|
.. | ||
fallbacks | 2 years ago | |
lib | 2 years ago | |
index.d.ts | 2 years ago | |
index.js | 2 years ago | |
license | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
Access the system clipboard (copy/paste)
Cross-platform. Supports: macOS, Windows, Linux, OpenBSD, FreeBSD, Android with Termux.
$ 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.
Type: string
The text to write to the clipboard.
Read (paste) from the clipboard synchronously.
MIT © Sindre Sorhus