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 plugin for work with LocalStorage from Vue context
npm install vue-ls --save
or
yarn install vue-ls
# install dependencies
npm install
# build dist files
npm run build
Vue localStorage API.
new Vue({
el: '#app',
mounted: function() {
this.$localStorage.set('foo', 'boo');
//Set expire for item
this.$localStorage.set('foo', 'boo', 60 * 60 * 1000); //expiry 1 hour
this.$localStorage.get('foo');
this.$localStorage.get('boo', 10); //if not set boo returned default 10
let callback = (val, oldVal, uri) => {
console.log('localStorage chnage', val);
}
this.$localStorage.on('foo', callback) //watch change foo key and triggered callback
this.$localStorage.off('foo', callback) //unwatch
this.$localStorage.remove('foo');
}
});
FAQs
Vue plugin for work with LocalStorage from Vue context
The npm package vue-ls receives a total of 4,771 weekly downloads. As such, vue-ls popularity was classified as popular.
We found that vue-ls 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.