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
派生數65
提交數66
已啟用問題?
問題數67
打開的問題數17
拉請求數24
打開的拉請求數0
關閉的拉請求數8
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?