clipboardy

Access the system clipboard (copy/paste)
clipboard copy paste copy-paste pasteboard read write pbcopy clip xclip xsel


Summary

Project Name clipboardy Project Url https://github.com/sindresorhus/clipboardy#readme
InceptionYear 2016-12-04 13:45:06 更新时间 2019-04-09 13:24:44
IssueManagement https://github.com/sindresorhus/clipboardy/issues Licenses MIT
仓库地址 git+https://github.com/sindresorhus/clipboardy.git 用户数 9
Node Engine >=8 文件大小 364.8 KB
install test

项目介绍

# clipboardy [![Build Status](https://travis-ci.org/sindresorhus/clipboardy.svg?branch=master)](https://travis-ci.org/sindresorhus/clipboardy) > Access the system clipboard (copy/paste) Cross-platform. Supports: macOS, Windows, Linux, OpenBSD, FreeBSD, Android with [Termux](https://termux.com/). ## Install ``` $ npm install clipboardy ``` ## Usage ```js 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. ## Related - [clipboard-cli](https://github.com/sindresorhus/clipboard-cli) - CLI for this module - [copy-text-to-clipboard](https://github.com/sindresorhus/copy-text-to-clipboard) - Copy text to the clipboard in the browser ## License MIT © [Sindre Sorhus](https://sindresorhus.com)

Dependencys

GroupId ArtifactID Version 引用量
Feross Aboukhadijeh arch 2.1.1 18
Sindre Sorhus execa 2.0.4 4487

开发依赖

GroupId ArtifactID Version 引用量
Sam Verschueren tsd 0.7.4 929
Sindre Sorhus xo 0.24.0 7276