Access the system clipboard (copy/paste). For node only:)
npm install node-clipboardy> Access the system clipboard (copy/paste)
Only for node, and original copied source code: https://github.com/sindresorhus/clipboardy
Cross-platform. Supports: macOS, Windows, Linux, OpenBSD, FreeBSD, Android with Termux.
``sh`
npm install node-clipboardy
`js
var ncp = require('node-clipboardy');
ncp.writeSync('🦄');
ncp.readSync();
//=> '🦄'
`
#### .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.