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.
The port of YUI3's mix method for node. Mixins two objects.
$ npm install mix2
const a = {a: 1}
const b = {b: 2}
const c = {a: 10, b: 20, c: 30}
mix(a, b)
console.log(a) // {a: 1, b: 2}
// Will not override the existing property 'a'
mix({a: 1}, c, false) // {a: 1, b: 20, c: 30}
// Only copy property 'a' and 'c', and override.
mix({a: 1}, c, true, ['a', 'c']) // {a: 10, c: 30}
Object
Object
Boolean=true
Whether should override the existing property of receiver
. Default to overriding(true
)(Array.<String>)=
If specified, only mix the specific keys in the array. Otherwise, mixin all properties.Extend the object receiver
with supplier
, and returns receiver
.
MIT
FAQs
The YUI mix
The npm package mix2 receives a total of 23,721 weekly downloads. As such, mix2 popularity was classified as popular.
We found that mix2 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’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.