
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
vue-electron-json-storage
Advanced tools
A vue plugin that attaches electron-json-storage APIs to the Vue object, making them accessible to all components.
A vue plugin that wraps electron-json-storage APIs to the Vue object.
Install using NPM
npm install vue-electron-json-storage --save
Include using webpack or browserify
main.js
import Vue from 'vue'
import VueElectronJSONStorage from 'vue-electron-json-storage'
Vue.use(VueElectronJSONStorage)
This plugin will attach electron-json-storage APIs to the Vue object itself, so accessing all APIs is dead simple. All official documentation from electron-json-storage can be used and accessed from this.$storage
.
So instead of...
const storage = require('electron-json-storage')
export default {
methods: {
getName () {
storage.get('name', (err, data) => {
if (err) {
console.error(err)
} else {
console.log(data)
}
})
}
}
}
Now you can...
export default {
methods: {
getName () {
this.$storage.get('name', (err, data) => {
if (err) {
console.error(err)
} else {
console.log(data)
}
})
}
}
}
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-json-storage directly to Vue just makes sense.
FAQs
A vue plugin that attaches electron-json-storage APIs to the Vue object, making them accessible to all components.
The npm package vue-electron-json-storage receives a total of 0 weekly downloads. As such, vue-electron-json-storage popularity was classified as not popular.
We found that vue-electron-json-storage 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.