clipboard-n
v0.0.3
Published
Commonly used typescript types
Readme
clipboard-n
copy from clipboardy but support ESM and CJS
install
npm install clipboard-nUsage
import { clipboard } from 'clipboard-n'
clipboard.writeSync('hello ajiu9')
clipboard.write('hello world')
clipboard.readSync()
clipboard.read()API
clipboard
.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.
