</>PackageGraphPackageGraph

deepmerge

npmv4.3.1

A library for deep (recursive) merging of Javascript objects

Not recommended for new projects

No — deepmerge should not be adopted for new projects. Last published 1273 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 1273 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 30 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • 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 deepmerge 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.

30 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 >=0.10.0
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the deepmerge README.

const x = {
	foo: { bar: 3 },
	array: [{
		does: 'work',
		too: [ 1, 2, 3 ]
	}]
}

const y = {
	foo: { baz: 4 },
	quux: 5,
	array: [{
		does: 'work',
		too: [ 4, 5, 6 ]
Example truncated — see the full README.

deepmerge vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
deepmergethis page05MIT3 years ago
rfdc46.8M3MIT19 hours ago
extend68.3M2MIT1 day ago
defaults01MIT19 hours ago
copy-anything01MIT15 hours ago
type-fest337.8M6(MIT OR CC0-1.0)1 day ago

Dependencies

Declared by deepmerge v4.3.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (11)

@types/node ^8.10.54is-mergeable-object 1.1.0is-plain-object ^5.0.0jsmd ^1.0.2rollup ^1.23.1rollup-plugin-commonjs ^10.1.0rollup-plugin-node-resolve ^5.2.0tape ^4.11.0ts-node 7.0.1typescript =2.2.2uglify-js ^3.6.1

Used by

Popular packages that depend on deepmerge.

Relationship graph

Dependencies (left) and dependents (right) of deepmerge.

Frequently installed together

Release history

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

Recent versions of deepmerge
VersionPublishedSizeLicense
4.3.1latest3 years ago30 KBMIT
4.3.03 years ago30 KBMIT
4.2.26 years ago29 KBMIT
4.2.16 years ago29 KBMIT
4.2.06 years ago29 KBMIT
4.1.26 years ago26 KBMIT
4.1.17 years ago26 KBMIT
4.1.07 years ago26 KBMIT
4.0.07 years ago25 KBMIT
3.3.07 years ago22 KBMIT
3.2.17 years ago21 KBMIT
3.2.07 years ago21 KBMIT
3.1.07 years ago20 KBMIT
3.0.07 years ago22 KBMIT
2.2.18 years ago25 KBMIT

Overview

deepmerge is an npm package that a library for deep (recursive) merging of Javascript objects. It has 5 known dependents in the graph. The latest version is 4.3.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a library for deep (recursive) merging of Javascript objects and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use deepmerge?

No — deepmerge should not be adopted for new projects. Last published 1273 days ago.

How do I install deepmerge?

Run `npm install deepmerge` to add deepmerge to your npm project.

What license is deepmerge released under?

deepmerge is distributed under the MIT license.

How popular is deepmerge?

npm does not publish download counts. Within PackageGraph's crawl, 5 known packages depend on deepmerge.

Is deepmerge still maintained?

The most recent release of deepmerge (v4.3.1) was published 3 years ago.

Does deepmerge run install scripts?

No. deepmerge does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.