0.0.3 • Published 4 months ago

clipboard-n v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

clipboard-n

copy from clipboardy but support ESM and CJS

install

npm install clipboard-n

Usage

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.

License

MIT License © 2025-PRESENT Ajiu9

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago