clipboardy

Access the system clipboard (copy/paste)

  • 所有者: sindresorhus/clipboardy
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

clipboardy Build Status

Access the system clipboard (copy/paste)

Cross-platform. Supports: macOS, Windows, Linux, OpenBSD, FreeBSD, Android with Termux.

Install

$ npm install clipboardy

Usage

const clipboardy = require('clipboardy');

clipboardy.writeSync('?');

clipboardy.readSync();
//=> '?'

API

clipboardy

.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.

FAQ

Where can I find the source of the bundled binaries?

The Linux binary is just a bundled version of xsel. The source for the Windows binary can be found here.

主要指标

概览
名称与所有者sindresorhus/clipboardy
主编程语言JavaScript
编程语言JavaScript (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2016-12-04 13:14:35
推送于2023-10-23 08:10:40
最后一次提交
发布数21
最新版本名称v4.0.0 (发布于 2023-10-23 15:10:18)
第一版名称v0.1.0 (发布于 2016-12-04 14:45:00)
用户参与
星数1.8k
关注者数14
派生数63
提交数66
已启用问题?
问题数67
打开的问题数17
拉请求数24
打开的拉请求数0
关闭的拉请求数8
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?