Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
putil-merge
Advanced tools
Lightweight solution for merging multiple objects into one. Also it supports deep merge and deep clone
Lightweight solution for merging multiple objects into one. Also it supports deep merge
npm install putil-merge --save
merge(target, ...source)
Combines source objects with the target object without deep operation. Also it copies references instead of cloning.
merge.deep(target, ...source)
Combines source objects with the target object with deep operation. Also it copies references instead of cloning.
merge.clone(target, ...source)
Combines source objects with the target object without deep operation. Also it clones values.
merge.deepClone(target, ...source)
Combines source objects with the target object with deep operation. Also it clones values.
const a = {l1a: 1, l1b: '2', l1d: {l2a: 1}};
const b = {l1b: 'b', l1c: 3, l1d: {l2b: {l3a: '2'}}, l1e: [1, 2, 3, 4]};
let o = merge(a, b);
>= 6.x
;FAQs
Lightweight solution for merging multiple objects into one. Also it supports deep merge and deep clone
The npm package putil-merge receives a total of 43,203 weekly downloads. As such, putil-merge popularity was classified as popular.
We found that putil-merge demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.