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.
本地数据存储操作库。
支持的存储方式有:
$ npm install za-storage
// 引入za-storage库
import Storage from 'za-storage';
// 创建一个Storage实例
let storage = new Storage();
// 创建一个Storage实例并设置本地存储源为cookie
let storage = new Storage({
source: 'cookie', // 'localStorage' | 'sessionStorage' | 'cookie'
});
// 创建一个Storage实例并设置全局的过期时间,单位:分钟
let storage = new Storage({
timeout: 1,
});
// 设置指定key的值
// storage.set(key, value, expire, path);
// key 字段
// value 值
// expire 过期时间,单位:分钟
// path cookie路径
storage.set('aaa', '123', 30);
storage.set('bbb', { a: 1, b: '3' }, 2);
// 获取指定key的值
storage.get('aaa');
// 删除指定值
storage.remove('aaa');
// 清空所有值
storage.removeAll();
FAQs
storage for za
The npm package nv-storage receives a total of 0 weekly downloads. As such, nv-storage popularity was classified as not popular.
We found that nv-storage demonstrated a healthy version release cadence and project activity because the last version was released less than 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.