Gathering detailed insights and metrics for extend
Gathering detailed insights and metrics for extend
Gathering detailed insights and metrics for extend
Gathering detailed insights and metrics for extend
npm install extend
99.9
Supply Chain
93.1
Quality
77.9
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
341 Stars
193 Commits
68 Forks
15 Watching
1 Branches
13 Contributors
Updated on 09 Apr 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-1.1%
6,479,807
Compared to previous day
Last week
5%
36,102,794
Compared to previous week
Last month
22.1%
139,501,963
Compared to previous month
Last year
6.2%
1,375,574,672
Compared to previous year
5
node-extend
is a port of the classic extend() method from jQuery. It behaves as you expect. It is simple, tried and true.
Notes:
Object.assign
now offers the same functionality natively (but without the "deep copy" option).
See ECMAScript 2015 (ES6) in Node.js.Object.assign
in both Node.js and many
browsers (since NPM modules are for the browser too) may not be fully
spec-compliant.
Check object.assign
module for
a compliant candidate.This package is available on npm as: extend
1npm install extend
Syntax: extend ( [deep
], target
, object1
, [objectN
] )
Extend one object with one or more others, returning the modified object.
Example:
1var extend = require('extend'); 2extend(targetObject, object1, object2);
Keep in mind that the target object will be modified, and will be returned from extend().
If a boolean true is specified as the first argument, extend performs a deep copy, recursively copying any objects it finds. Otherwise, the copy will share structure with the original object(s).
Undefined properties are not copied. However, properties inherited from the object's prototype will be copied over.
Warning: passing false
as the first argument is not supported.
deep
Boolean (optional)
If set, the merge becomes recursive (i.e. deep copy).target
Object
The object to extend.object1
Object
The object that will be merged into the first.objectN
Object (Optional)
More objects to merge into the first.node-extend
is licensed under the MIT License.
All credit to the jQuery authors for perfecting this amazing utility.
Ported to Node.js by Stefan Thomas with contributions by Jonathan Buchanan and Jordan Harband.
The latest stable version of the package.
Stable Version
2
0/10
Summary
Prototype Pollution in extend
Affected Versions
< 2.0.2
Patched Versions
2.0.2
0/10
Summary
Prototype Pollution in extend
Affected Versions
>= 3.0.0, < 3.0.2
Patched Versions
3.0.2
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More