</>PackageGraphPackageGraph

shallowequal

npmv1.1.0

Like lodash isEqualWith but for shallow equal.

Not recommended for new projects

No — shallowequal should not be adopted for new projects. Last published 3000 days ago.

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

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 3000 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 7.2 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 shallowequal 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.

7.2 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
No constraint declared
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the shallowequal README.

const shallowequal = require('shallowequal');

const object = { 'user': 'fred' };
const other = { 'user': 'fred' };

object == other;
// → false

shallowequal(object, other);
// → true

shallowequal vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
shallowequalthis page01MIT8 years ago
deep-is01MIT1 day ago
deep-equal06MIT1 day ago
react-fast-compare01MIT1 day ago
diff124.1M4BSD-3-Clause1 day ago
fast-deep-equal06MIT1 day ago

Dependencies

Declared by shallowequal v1.1.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (11)

babel-eslint ^8.0.0babel-preset-env ^1.6.1babel-register ^6.24.1chai ^4.0.0eslint ^4.7.1flow-bin ^0.75.0flow-remove-types ^1.2.3husky ^0.14.3lint-staged ^6.0.0mocha ^5.0.0prettier ^1.9.2

Used by

Popular packages that depend on shallowequal.

Relationship graph

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

expo-routershallowequal
shallowequal dependencies dependents

Frequently installed together

Release history

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

Recent versions of shallowequal
VersionPublishedSizeLicense
1.1.0latest8 years ago7.2 KBMIT
1.0.29 years agoMIT
1.0.19 years agoMIT
1.0.09 years agoMIT
0.2.211 years agoMIT
0.2.111 years agoMIT
0.2.011 years agoMIT
0.1.011 years agoMIT

Overview

shallowequal is an npm package that like lodash isEqualWith but for shallow equal. It has 1 known dependents in the graph. The latest version is 1.1.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need like lodash isEqualWith but for shallow equal 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 shallowequal?

No — shallowequal should not be adopted for new projects. Last published 3000 days ago.

How do I install shallowequal?

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

What license is shallowequal released under?

shallowequal is distributed under the MIT license.

How popular is shallowequal?

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

Is shallowequal still maintained?

The most recent release of shallowequal (v1.1.0) was published 8 years ago.

Does shallowequal run install scripts?

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