1.0.2 • Published 2 years ago

easycopyjs v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

EasyCopy

Copy text based on clipboard.js 2.0.11

version npmDownloadTotal githubIssues

Install

npm install --save easycopyjs

Usage

<div id="app"></div>

<template>
    <section>
        <button @click="doCopy">do Copy</button>
    </section>
</template>

<script>
import { copyText } from 'easycopyjs'
export default {
    methods: {
        async doCopy() {
            try {
                const copyEvent = await copyText('something')
                console.log('copy success', copyEvent)
            } catch (e) {
                console.log('copy fail', e)
            }
        },
    },
}
</script>

end

If you feel helpful, you can come to Github give me a star, your ✨ is the biggest encouragement to me ~