# vue-directive-copy

> A Vue.js project

Latest version **1.1.2** (published 2019-06-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-directive-copy
pnpm add vue-directive-copy
yarn add vue-directive-copy
bun add vue-directive-copy
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2019-06-13 |
| First published | 2018-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Lee Khang |
| Maintainers | lekhang |

## Links

- npm: https://www.npmjs.com/package/vue-directive-copy
- npm.io page: https://npm.io/package/vue-directive-copy

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.5.11

## Recent versions

- 1.1.2 (latest) — 2019-06-13
- 1.1.1 — 2019-06-13
- 1.1.0 — 2019-06-13
- 1.0.9 — 2019-06-13
- 1.0.8 — 2019-06-13
- 1.0.7 — 2018-10-31
- 1.0.6 — 2018-10-16
- 1.0.5 — 2018-10-16
- 1.0.4 — 2018-10-16
- 1.0.3 — 2018-10-16
- 1.0.2 — 2018-10-16
- 1.0.1 — 2018-10-16
- 1.0.0 — 2018-10-16

## README

# vue-directive-copy
A simple copy text directive for Vuejs
[NPM Package](https://www.npmjs.com/package/vue-directive-copy)

[Demo!](https://codepen.io/lekhang2512/pen/aRVgzY)

![enter image description here](https://raw.githubusercontent.com/lekhang2512/vue-directive-copy/master/src/assets/demo.png)

## Development (NPM / Yarn)
```
npm run dev
yarn dev
```

## Install

#### NPM / Yarn

Install the package:

```
npm install vue-directive-copy
yarn add vue-directive-copy
```

Then import it in your project
```javascript
import ClickCopy from 'vue-directive-copy'

Vue.use(ClickCopy)
```
Single component
```javascript
import { copy } from 'vue-directive-copy/src/copy'
import 'vue-directive-copy/src/style.css'

export default {
  directives: {
    copy
  }
}
```

#### Browser global

```html
<script src="path/to/vue.js"></script>
<script src="path/to/dist/vue-directive-copy.js"></script>
```

## Usage

You can simply view [App.vue](https://github.com/lekhang2512/vue-image-lightbox-carousel/blob/master/src/App.vue) to see how to use **vue-upload-multiple-image**

How to use:
```html
<span v-copy="'Le Khang'">Le Khang</span>
```

## Example
```html
<template>
  <span v-copy="'Le Khang'">Le Khang</span>
</template>

<script>
import { copy } from 'vue-directive-copy'
export default {
  name: 'app',
  data () {
    return {
    }
  },
  directives: {
    copy
  }
}
</script>
```
## References
- [copy-text-to-clipboard](https://github.com/sindresorhus/copy-text-to-clipboard#readme)
- [v-copy](https://github.com/egoist/v-copy)

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