# easycopyjs

> Copy texts Based on clipboard.js without a specific button

Latest version **1.0.2** (published 2022-09-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install easycopyjs
pnpm add easycopyjs
yarn add easycopyjs
bun add easycopyjs
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-09-27 |
| First published | 2022-09-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | liuarui |
| Maintainers | liuarui |
| Keywords | copy, browser, clipboard, clipboard.js, write, writeText, easy, easycopy, easycopyjs, utils |

## Links

- npm: https://www.npmjs.com/package/easycopyjs
- Repository: https://github.com/liuarui/easycopy
- Homepage: https://github.com/liuarui/easycopy#readme
- Issues: https://github.com/liuarui/easycopy/issues
- npm.io page: https://npm.io/package/easycopyjs

## Dependencies (1)

- [clipboard](https://npm.io/package/clipboard.md) 2.0.11

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-09-27
- 1.0.1 — 2022-09-26
- 1.0.0 — 2022-09-26
- 0.0.1 — 2022-09-26

## README

# EasyCopy

Copy text based on clipboard.js 2.0.11

![version](https://img.shields.io/npm/v/easycopyjs)
![npmDownloadTotal](https://img.shields.io/npm/dt/easycopyjs)
![githubIssues](https://img.shields.io/github/issues/liuarui/easycopy)

## Install

`npm install --save easycopyjs`

## Usage

```vue
<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 ~

---
_Source: https://npm.io/package/easycopyjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
