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-electron
Advanced tools
The vue plugin that attaches electron APIs to the Vue object, making them accessable to all components.
The vue plugin that wraps electron APIs to the Vue object.
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 582 weekly downloads. As such, vue-electron popularity was classified as not 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
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.