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

0.0.4 • Public • Published

js-copy-to-clipboard

Simple module exposing copyToClipboard function to copy any text to clip board for javascript and typescript projects

Installation

To install js-copy-to-clipboard, you need node.js and npm.

In your project directory, just run

npm i js-copy-to-clipboard

Usage

Can be used in node, angular, react or vuejs projects

import copyToClipboard from 'js-copy-to-clipboard';
 
copyToClipboard('Text to copy');  // this text is copied to clipboard, you can use ctrl + v to paste the text
 
</script>

License

MIT

Package Sidebar

Install

npm i js-copy-to-clipboard

Weekly Downloads

8

Version

0.0.4

License

ISC

Unpacked Size

2.87 kB

Total Files

6

Last publish

Collaborators

  • saqy