
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
vue-clipboards
Advanced tools
š Vue2.0 directive to copy or cut text to clipboard.
Vue wrapper for clipboard.js.
DEMO: https://zhuowenli.github.io/vue-clipboards/
$ npm install vue-clipboards
import VueClipboards from 'vue-clipboards';
Vue.use(VueClipboards);
new Vue({
data() {
return {
copyData: 'copy data'
}
}
});
<button v-clipboard="copyData">Copy</button>
<button v-clipboard="copyData" @success="handleSuccess" @error="handleError">Copy</button>
import VueClipboards from 'vue-clipboards';
Vue.use(VueClipboards);
new Vue({
data() {
return {
copyData: 'copy data'
}
},
methods: {
handleSuccess(e) {
console.log(e);
},
handleError(e) {
console.log(e);
},
}
});
yarn dev
: Run example in development modeyarn deploy
: Deploy example to gh-pagesyarn build
: Build component in umd & es formatyarn watch
: Build component in umd & es format with watch modeCheck out your npm scripts, it's using vbuild under the hood.
Generated by create-vue-app
FAQs
Vue2.0 directive to copy or cut text to clipboard.
The npm package vue-clipboards receives a total of 3,149 weekly downloads. As such, vue-clipboards popularity was classified as popular.
We found that vue-clipboards demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Ā It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.