Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
vue-epic-bus
Advanced tools
Emit and subscribe to global bus from your components
yarn add vue-epic-bus
// or
npm i vue-epic-bus
// main.js
import Vue from 'vue'
import {BusPlugin} from 'vue-epic-bus'
Vue.use(BusPlugin)
Subscribe:
<script>
export default {
subs: {
productUpdated (id) {
console.log('Product updated', id)
}
},
}
</script>
Emit:
<script>
export default {
methods: {
productUpdated (id) {
this.$cast('updated', id)
}
},
}
</script>
$cast
could be used from template.
<button @click="$cast('updated', id)">Update</button>
If you're unhappy with default word choice for $cast
and subs
you can change it via plugin options:
Vue.use(BusPlugin, {
optionGroupName: 'subs',
broadcastName: '$cast',
})
FAQs
Bus plugin for vue.js
The npm package vue-epic-bus receives a total of 97 weekly downloads. As such, vue-epic-bus popularity was classified as not popular.
We found that vue-epic-bus 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.