
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@wukaikailive/safeget
Advanced tools
A lib for safe get javascrpt's object. 这是一个用于安全获取javascrpt对象/数组的属性/元素的库。
这个库的特色就是将表达式解析成抽象语法树,再来求值。 主要是为了学习和好玩,性能待测试。
npm install --save @wukaikailive/safeget
import safeGet from '@wukaikailive/safeget'
import {safeGets} from '@wukaikailive/safeget'
let obj = {
a: 2,
b: {
c: 1,
d: [
{
f: [1, [2, 3]],
g: {
h: 2
}
}
]
}
}
safeGet(obj,"b.d[0]f[1][0]") // 2
safeGets(obj,"b.c","b.d[0]f[1][0]","b.d[0].g.h") // [1,2,2]
FAQs
A lib for safe get javascrpt's object
We found that @wukaikailive/safeget 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
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.