
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
vue-electron
Advanced tools
The vue plugin that attaches electron APIs to the Vue object, making them accessible to all components.
The vue plugin that wraps electron APIs to the Vue object.
https://github.com/SimulatedGREG/electron-vue
Install using NPM
npm install vue-electron --save
Include using webpack or browserify
main.js
import Vue from 'vue'
import VueElectron from 'vue-electron'
Vue.use(VueElectron)
This plugin will attach electron APIs to the Vue object itself, so accessing all APIs is dead simple. All official documentation from electron can be used and accessed from this.$electron
.
So instead of...
const electron = require('electron')
export default {
methods: {
getName () {
return electron.remote.app.getName()
}
}
}
Now you can...
export default {
methods: {
getName () {
return this.$electron.remote.app.getName()
}
}
}
Now you might be thinking, "Is it really that annoying to simply require electron to access it?" Probably not, but it can get cumbersome to have to include it in every component file that needs it. In the end, attaching electron directly to Vue just makes sense.
FAQs
The vue plugin that attaches electron APIs to the Vue object, making them accessible to all components.
The npm package vue-electron receives a total of 1,027 weekly downloads. As such, vue-electron popularity was classified as popular.
We found that vue-electron 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
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.