
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
param-check
Advanced tools
运行时数据校验工具 | a javascript run-time data verification tool.
npm install param-check --save
import check from 'param-check'
function fn (arg1, arg2) {
check(arg1).isString()
check(arg2, 'arg2').greaterThan(1).lessThan(2)
}
import check from 'param-check/naked'
import isStringCheck from 'param-check/lib/checks/isString'
check.registerCheck(isStringCheck)
function fn (arg) {
check(arg, 'arg').isString()
}
import check from 'param-check'
import isNumber from 'lodash/isNumber'
function isEven (target, name) {
return isNumber(target) && !(target % 2)
}
check.registerCheck('isEven', isEven)
function fn (arg) {
check(arg, 'arg').isEven()
}
import check from 'param-check'
import isNumber from 'lodash/isNumber'
function isEven (target, name) {
return isNumber(target) && !(target % 2)
}
function isEventNext (target) {
return return target + 1
}
check.registerCheck('isEven', isEven, isEventNext)
function fn (arg) {
check(arg, 'arg').isEven().isEven() // error occurred
}
FAQs
A js library for runtime parameter checking.
The npm package param-check receives a total of 0 weekly downloads. As such, param-check popularity was classified as not popular.
We found that param-check demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.