@pigerla/copy-paste-js

1.0.10 • Public • Published

copy-paste-js 非常轻量的复制粘贴库

非常轻量的复制粘贴库(npm 包) A very light-weight copy-paste function code

Install 安装

npm install @pigerla/copy-paste-js

Usage 使用

import copyPaste from "@pigerla/copy-paste-js";

copyPaste(text).then((text) => {
  console && console.log("Copy successfully", text);
});

Parameter 参数说明

text:the plain text which need to copy 待复制到剪切板的文本、字符串

Readme

Keywords

Package Sidebar

Install

npm i @pigerla/copy-paste-js

Weekly Downloads

4

Version

1.0.10

License

ISC

Unpacked Size

24.8 kB

Total Files

11

Last publish

Collaborators

  • wjj474957860