copy-data-to-clipboard
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

copy-data-to-clipboard

use the newest api navigator.clipboard.writeText to copy stuff into clipboard

Installation

npm install copy-data-to-clipboard
#or
yarn add copy-data-to-clipboard

How to use it

import copy from "copy-data-to-clipboard";

copy("Text");

copy("Text", {
    debug: true,
    message: "copy error",
});

Package Sidebar

Install

npm i copy-data-to-clipboard

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.88 kB

Total Files

4

Last publish

Collaborators

  • chencaize