@rabiabaloch/easy-to-copy

1.0.6 • Public • Published

copy-to-clipboard

it's a light weight tool to copy anything that will pass in the function

How to use?

You have to just impor the following line.import copy_to_clipboard from '@rabiabaloch/easy-to-copy';.Then place anything in this copy_to_clipboard function.

For Example:
import copy_to_clipboard from '@rabiabaloch/easy-to-copy';

 var var1 = "This is var1 to copy";

 var arr_2 = ["sami", "jacob", "bella", "jimmy"];

 var3 = [
              {
                "name": "john",
                "age" : 20
              },
              {
                "name": "robin",
                "age" : 30
              },
              {
                "name": "alexa",
                "age" : 05
              },
          ]
     etc....
 
 // this could be any random string that you pass in the function as a parameter it will copy the value to clipboard

  copy_to_clipboard(copy_val); 
// it will copy that var containing value to your clipboard.

Try to write code in simple and easy way that the other person can understand

Package Sidebar

Install

npm i @rabiabaloch/easy-to-copy

Weekly Downloads

0

Version

1.0.6

License

ISC

Unpacked Size

2.48 kB

Total Files

3

Last publish

Collaborators

  • rabiabaloch