handy-copy

1.0.12 • Public • Published

Handy-Copy

A handy way to copy anything to clipboard. Screenshots below!!

Quick links

  1. Screenshots
  2. Usage
  3. API options

Screenshots

alt text alt text

These screenshots are from React-Instagram-clone-2.0!!

Usage with npm or Yarn

  1. First install the package with npm or Yarn.
#npm  
npm install handy-copy
 
#or with yarn 
yarn add handy-copy
  1. And here comes the fun part.
import Copy from 'handy-copy'
Copy({
    value: "I will be copied!",   // What you want to copy
    done: () => {                 // Callback function    
        console.log('Link Copied!!')
    }
})

API

Copy(options:Object)
options = {
    value,
    done
}

Thanks for reading!!

/handy-copy/

    Package Sidebar

    Install

    npm i handy-copy

    Weekly Downloads

    7

    Version

    1.0.12

    License

    ISC

    Unpacked Size

    346 kB

    Total Files

    7

    Last publish

    Collaborators

    • takkar