</>PackageGraphPackageGraph

object-is

npmv1.1.6

ES2015-compliant shim for Object.is - differentiates between -0 and +0

Adopt with care

object-is is usable, with caveats. Last published 925 days ago.

  • AAdoption: grade A, Excellent.

    21.5M downloads per week and 1 known dependents.

  • DMaintenance: grade D, Poor — a real concern.

    Last published 925 days ago.

  • BWeight: grade B, Good.

    Pulls in 16 transitive packages, about 257 KB installed (at least — some of the tree is still being crawled).

  • 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 object-is to a project.

2
Direct dependencies

Runtime packages this one declares itself.

16
Total installed

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

257 KB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

MIT

Every license you inherit by installing object-is, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >= 0.4
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the object-is README.

Object.is = require('object-is');
var assert = require('assert');

assert.ok(Object.is());
assert.ok(Object.is(undefined));
assert.ok(Object.is(undefined, undefined));
assert.ok(Object.is(null, null));
assert.ok(Object.is(true, true));
assert.ok(Object.is(false, false));
assert.ok(Object.is('foo', 'foo'));

var arr = [1, 2];
assert.ok(Object.is(arr, arr));
assert.equal(Object.is(arr, [1, 2]), false);
Example truncated — see the full README.

object-is vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
object-isthis page21.5M1MIT2 years ago
regexp.prototype.flags01MIT1 day ago
array-buffer-byte-length01MIT1 day ago
rxjs90.9M6Apache-2.01 day ago
path-parse01MIT1 day ago
is-glob137.4M3MIT1 day ago

Dependencies

Declared by object-is v1.1.6. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (2)

call-bind ^1.0.7define-properties ^1.2.1

Dev (12)

@es-shims/api ^2.4.2@ljharb/eslint-config ^21.1.0aud ^2.0.4auto-changelog ^2.4.0eslint =8.8.0functions-have-names ^1.2.3has-symbols ^1.0.3in-publish ^2.0.1npmignore ^0.3.1nyc ^10.3.2safe-publish-latest ^2.0.0tape ^5.7.5

Used by

Popular packages that depend on object-is.

Relationship graph

Dependencies (left) and dependents (right) of object-is.

call-binddeep-equalobject-is
object-is dependencies dependents

Frequently installed together

Release history

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

Recent versions of object-is
VersionPublishedSizeLicense
1.1.6latest2 years ago26 KBMIT
1.1.55 years ago23 KBMIT
1.1.45 years ago27 KBMIT
1.1.36 years ago19 KBMIT
1.1.26 years ago25 KBMIT
1.1.16 years ago25 KBMIT
1.1.06 years ago18 KBMIT
1.0.26 years ago16 KBMIT
1.0.112 years agoMIT
1.0.012 years agoMIT
0.0.012 years agoMIT

Overview

object-is is an npm package that eS2015-compliant shim for Object.is - differentiates between -0 and +0. It is extremely widely used, with about 21.5M downloads per week and 1 known dependents in the graph. The latest version is 1.1.6, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need eS2015-compliant shim for Object.is - differentiates between -0 and +0 and value a battle-tested, widely-adopted 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

  • Large, well-established user base (21.5M weekly downloads).
  • 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

Funding

Frequently asked questions

Should I use object-is?

object-is is usable, with caveats. Last published 925 days ago.

How do I install object-is?

Run `npm install object-is` to add object-is to your npm project.

How many dependencies does object-is have?

object-is declares 14 direct dependencies and pulls in 16 packages in total once its runtime tree is resolved totalling about 257 KB on disk.

What license is object-is released under?

object-is is distributed under the MIT license.

How popular is object-is?

object-is has approximately 21,525,221 downloads per week and 1 known dependent packages.

Is object-is still maintained?

The most recent release of object-is (v1.1.6) was published 2 years ago.

Does object-is run install scripts?

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