
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
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.
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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.