</>PackageGraphPackageGraph

merge-descriptors

npmv2.0.0TypeScript

Merge 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

4.3 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
merge-descriptorsthis page113M1MIT2 years ago
define-lazy-prop01MIT1 day ago
defaults01MIT1 day ago
es-define-property131.3M4MIT1 day ago
rfdc46.8M3MIT1 day ago
define-data-property02MIT1 day ago

Dependencies

Declared by merge-descriptors v2.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (2)

ava ^5.3.1xo ^0.56.0

Used by

Popular packages that depend on merge-descriptors.

Relationship graph

Dependencies (left) and dependents (right) of merge-descriptors.

expressmerge-descriptors
merge-descriptors dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 322 days apart.

Recent versions of merge-descriptors
VersionPublishedSizeLicense
2.0.0latest2 years ago4.3 KBMIT
1.0.32 years ago5.0 KBMIT
1.0.22 years ago4.9 KBMIT
1.0.110 years agoMIT
1.0.011 years agoMIT
0.0.212 years agoMIT
0.0.113 years agoMIT

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.

Maintainers

Keywords

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.