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-mouseflow
Advanced tools
📈 Vue.js plugin for Mouseflow tracking
npm install --save vue-mouseflow
VueMouseflow.install(Vue, options)
Vue
<Object>
: a Vue instancetracking_key
<String>
: The Mouseflow tracking key you want to useInstall the plugin using the Vue.use
method:
import Vue from 'vue';
import VueMouseflow from 'vue-mouseflow';
Vue.use(VueMouseflow, { tracking_key: 'your-tracking-key' });
VueMouseflow.push([commandName, argument1, argument2, …]);
This acts as a wrapper for the _mfq
object. Check https://js-api-docs.mouseflow.com/#the-_mfq-object for more information.
VueMouseflow.logRouteChange(route[, options])
route
<Object>
: a VueRouter route objectoptions
<Object>
:
includeRouteParams
<Boolean>
: Set to false to remove all user-entered URL params. Useful if there is sensitive data in the URL which you do not want to track. Defaults to true
.// router.js
import VueRouter from 'vue-router';
import VueMouseflow from 'vue-mouseflow';
const router = new VueRouter({
routes: [
/* some routes */
]
});
router.afterEach(to => {
VueMouseflow.logRouteChange(to, { includeRouteParams: false });
});
this.$mf
VueMouseflow
is also added to your Vue prototype when installed. The above two methods are exposed on the this.$mf
namespace.
This can be useful for event logging within components:
const MyApp = new Vue({
...,
methods: {
buttonPressed(evt) {
this.$mf.push('addedToCart', Date.now());
}
}
})
FAQs
Vue.js plugin to add Mouseflow tracking to your application
The npm package vue-mouseflow receives a total of 34 weekly downloads. As such, vue-mouseflow popularity was classified as not popular.
We found that vue-mouseflow 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.