Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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,641 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.