Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-directive-copy

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-directive-copy

A Vue.js project

  • 1.0.6
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

vue-directive-copy

A simple copy text directive for Vuejs NPM Package

Demo!

enter image description here

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

import ClickCopy from 'vue-directive-copy'

Vue.use(ClickCopy)

Single component

import { copy } from 'vue-directive-copy/src/copy'
import 'vue-directive-copy/src/style.css'

export default {
  directives: {
    copy
  }
}
Browser global
<script src="path/to/vue.js"></script>
<script src="path/to/dist/vue-directive-copy.js"></script>

Usage

You can simply view App.vue to see how to use vue-upload-multiple-image

How to use:

<span v-copy="'Le Khang'">Le Khang</span>

Example

<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

FAQs

Package last updated on 16 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc