1.0.2 • Published 3 years ago

@nasirbaloch/copy-lite v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

copy-lite

This is a very light weighted copier. You can pass any thing, it will be simply copy to clipboard.

How to use?

Simply import like this. import copyMe from '@nasirbaloch/copy-me';. Then place anything in this copyMe function. For example.

import copyMe from '@nasirbaloch/copy-me';
   var1 = "This is var1 to copy"
   var2 = ["john doe", "robin", "alexa", "google"];
   var3 = [
              {
                "name": "john",
                "age" : 20
              },
              {
                "name": "robin",
                "age" : 30
              },
              {
                "name": "alexa",
                "age" : 05
              },
          ]
     etc....

//this could be any variable containing any. then simple pass var in function. like this.

	copyMe(anyVar); 
// it will copy that var containing value to your clipboard.

Thanks 😍 #avoidExtraLines