</>PackageGraphPackageGraph

dequal

npmv2.0.3TypeScript

A tiny (304B to 489B) utility for check for deep equality

Not recommended for new projects

No — dequal should not be adopted for new projects. Last published 1521 days ago.

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

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 1521 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 14 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 dequal 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.

14 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 >=6
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the dequal README.

import { dequal } from 'dequal';

dequal(1, 1); //=> true
dequal({}, {}); //=> true
dequal('foo', 'foo'); //=> true
dequal([1, 2, 3], [1, 2, 3]); //=> true
dequal(dequal, dequal); //=> true
dequal(/foo/, /foo/); //=> true
dequal(null, null); //=> true
dequal(NaN, NaN); //=> true
dequal([], []); //=> true
dequal(
  [{ a:1 }, [{ b:{ c:[1] } }]],
  [{ a:1 }, [{ b:{ c:[1] } }]]
Example truncated — see the full README.

dequal vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
dequalthis page02MIT4 years ago
rfdc46.8M3MIT1 day ago
object-is21.5M1MIT1 day ago
deep-equal06MIT1 day ago
deep-is01MIT1 day ago
fast-deep-equal06MIT1 day ago

Dependencies

Declared by dequal v2.0.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

bundt 1.0.2esm 3.2.25uvu 0.3.2

Used by

Popular packages that depend on dequal.

Relationship graph

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

@fastify/merge-js…json-schema-ref-r…dequal
dequal dependencies dependents

Frequently installed together

Release history

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

Recent versions of dequal
VersionPublishedSizeLicense
2.0.3latest4 years ago14 KBMIT
2.0.26 years ago14 KBMIT
2.0.16 years ago14 KBMIT
2.0.06 years ago14 KBMIT
1.0.16 years ago6.3 KBMIT
1.0.07 years ago5.5 KBMIT
0.0.07 years ago2.3 KBMIT

Overview

dequal is an npm package that a tiny (304B to 489B) utility for check for deep equality. It has 2 known dependents in the graph. The latest version is 2.0.3, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need a tiny (304B to 489B) utility for check for deep equality and value a focused 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

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No significant drawbacks detected from available metadata.

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

Maintainers

Keywords

Frequently asked questions

Should I use dequal?

No — dequal should not be adopted for new projects. Last published 1521 days ago.

How do I install dequal?

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

What license is dequal released under?

dequal is distributed under the MIT license.

How popular is dequal?

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

Is dequal still maintained?

The most recent release of dequal (v2.0.3) was published 4 years ago.

Does dequal run install scripts?

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