merge-descriptors
npmv2.0.0TypeScriptMerge objects using their property descriptors
Adopt with care
merge-descriptors is usable, with caveats. Last published 1028 days ago.
- AAdoption: grade A, Excellent.
113M downloads per week and 1 known dependents.
- DMaintenance: grade D, Poor — a real concern.
Last published 1028 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 4.3 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 6 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding merge-descriptors to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=18
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the merge-descriptors README.
import mergeDescriptors from 'merge-descriptors';
const thing = {
get name() {
return 'John'
}
}
const animal = {};
mergeDescriptors(animal, thing);
console.log(animal.name);
//=> 'John'merge-descriptors vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| merge-descriptorsthis page | 113M | 1 | MIT | 2 years ago |
| define-lazy-prop | 0 | 1 | MIT | 1 day ago |
| defaults | 0 | 1 | MIT | 1 day ago |
| es-define-property | 131.3M | 4 | MIT | 1 day ago |
| rfdc | 46.8M | 3 | MIT | 1 day ago |
| define-data-property | 0 | 2 | MIT | 1 day ago |
Dependencies
Declared by merge-descriptors v2.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (2)
Used by
Popular packages that depend on merge-descriptors.
Relationship graph
Dependencies (left) and dependents (right) of merge-descriptors.
Frequently installed together
Create and parse HTTP Content-Type header
The ultimate javascript content-type utility.
Create HTTP error objects
An AST-based pattern checker for JavaScript.
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Node.js final http responder
Infer the content-type of a request.
Better streaming static file server with Range and conditional-GET support
Run a function exactly one time
Deprecate all the things
Manipulate the HTTP Vary header
Create simple HTTP ETags
Release history
No releases in the last two years, typically about 322 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.0.0latest | 2 years ago | 4.3 KB | MIT |
| 1.0.3 | 2 years ago | 5.0 KB | MIT |
| 1.0.2 | 2 years ago | 4.9 KB | MIT |
| 1.0.1 | 10 years ago | — | MIT |
| 1.0.0 | 11 years ago | — | MIT |
| 0.0.2 | 12 years ago | — | MIT |
| 0.0.1 | 13 years ago | — | MIT |
Overview
merge-descriptors is an npm package that merge objects using their property descriptors. It is extremely widely used, with about 113M downloads per week and 1 known dependents in the graph. The latest version is 2.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need merge objects using their property descriptors and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (113M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Funding
Frequently asked questions
Should I use merge-descriptors?
merge-descriptors is usable, with caveats. Last published 1028 days ago.
How do I install merge-descriptors?
Run `npm install merge-descriptors` to add merge-descriptors to your npm project.
What license is merge-descriptors released under?
merge-descriptors is distributed under the MIT license.
How popular is merge-descriptors?
merge-descriptors has approximately 113,027,167 downloads per week and 1 known dependent packages.
Is merge-descriptors still maintained?
The most recent release of merge-descriptors (v2.0.0) was published 2 years ago.
Does merge-descriptors run install scripts?
No. merge-descriptors does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.