copy-rich-text
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

copy-async

复制文本、富文本到剪切板,WebSite

usage

npm i copy-rich-text
import copy from 'copy-rich-text';

await copy('hello world');
await copy('<h1>hello world</h1>');
await copy(document.querySelector('#rich-text'));
await copy(document.querySelector('#rich-text'), { html: true });

Package Sidebar

Install

npm i copy-rich-text

Weekly Downloads

2

Version

0.2.1

License

ISC

Unpacked Size

18.9 kB

Total Files

20

Last publish

Collaborators

  • npm_bowen
  • bowencool