Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@abetomo/mask-value
Advanced tools
Mask the value of the object.
% npm i @abetomo/mask-value
import { mask, masks, Config } from '@abetomo/mask-value'
type User = {
name: string
address: string
}
const data: User[] = [
{
name: 'name1',
address: 'address1'
},
{
name: 'name2',
address: 'address2'
}
]
const config: Config = {
path: '.[].name',
action: () => Math.random()
}
console.log(mask<User[]>(data, config))
/*
Output:
[
{ name: 0.913236932864554, address: 'address1' },
{ name: 0.6970620876451457, address: 'address2' }
]
*/
const configs: Config[] = [
{
path: '.[].name',
action: () => Math.random()
},
{
path: '.[].address',
action: (s: string) => s.length * Math.random()
}
]
console.log(masks<User[]>(data, configs))
/*
Output:
[
{ name: 0.4253394097546368, address: 4.285149904757429 },
{ name: 0.7394228798993354, address: 6.334446902953465 }
]
*/
FAQs
Mask the value of the object.
The npm package @abetomo/mask-value receives a total of 4 weekly downloads. As such, @abetomo/mask-value popularity was classified as not popular.
We found that @abetomo/mask-value 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.