</>PackageGraphPackageGraph

object-inspect

npmv1.13.4

string representations of objects in node and the browser

Adopt with care

object-inspect is usable, with caveats. Last published 582 days ago. 2 releases in the last 2 years.

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

    No download data reported for this package yet.

  • CMaintenance: grade C, Fair — worth a look.

    Last published 582 days ago. 2 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 101 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 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 object-inspect 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.

101 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.4
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the object-inspect README.

var inspect = require('object-inspect');
var obj = { a: 1, b: [3,4] };
obj.c = obj;
console.log(inspect(obj));

object-inspect 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-inspectthis page024MIT1 year ago
serialize-error02MIT1 day ago
fast-json-stable-stringify137.5M2MIT1 day ago
es-define-property131.3M4MIT1 day ago
merge-descriptors113M1MIT1 day ago
is-plain-obj112.9M1MIT1 day ago

Dependencies

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

Dev (24)

@ljharb/eslint-config ^21.1.1@pkgjs/support ^0.0.6auto-changelog ^2.5.0core-js ^2.6.12error-cause ^1.0.8es-value-fixtures ^1.7.1eslint =8.8.0for-each ^0.3.4functions-have-names ^1.2.3glob =10.3.7globalthis ^1.0.4has-symbols ^1.1.0has-tostringtag ^1.0.2in-publish ^2.0.1jackspeak =2.1.1make-arrow-function ^1.2.0mock-property ^1.1.0npmignore ^0.3.1nyc ^10.3.2safe-publish-latest ^2.0.0safer-buffer ^2.1.2semver ^6.3.1string.prototype.repeat ^1.0.0tape ^5.9.0

Used by

Popular packages that depend on object-inspect.

math-intrinsicsnpm

ES Math-related intrinsics and helpers, robustly cached.

155.2M/wk1 dependentsMIT
call-bindnpm

Robustly `.call.bind()` a function

80.7M/wk5 dependentsMIT
internal-slotnpm

ES spec-like internal slots

79.2M/wk1 dependentsMITTS
side-channel-weakmapnpm

Store information about any JS value in a side channel. Uses WeakMap if available.

78.5M/wk1 dependentsMITTS
axobject-querynpm

Programmatic access to information about the AXObject Model

51.8M/wk1 dependentsApache-2.0
side-channel-mapnpm

Store information about any JS value in a side channel, using a Map

0/wk2 dependentsMITTS
call-boundnpm

Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.

0/wk7 dependentsMITTS
get-intrinsicnpm

Get and robustly cache all JS language-level intrinsics at first require time

0/wk8 dependentsMIT
regexp.prototype.flagsnpm

ES6 spec-compliant RegExp.prototype.flags shim.

0/wk1 dependentsMIT
which-boxed-primitivenpm

Which kind of boxed JS primitive is this?

0/wk1 dependentsMITTS
array-buffer-byte-lengthnpm

Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.

0/wk1 dependentsMITTS
aria-querynpm

Programmatic access to the ARIA specification

0/wk3 dependentsApache-2.0
es-get-iteratornpm

Get an iterator for any JS language value. Works robustly across all environments, all versions.

0/wk1 dependentsMIT
is-shared-array-buffernpm

Is this value a JS SharedArrayBuffer?

0/wk1 dependentsMITTS
set-function-namenpm

Set a function's name property

0/wk1 dependentsMITTS
set-function-lengthnpm

Set a function's length property

0/wk1 dependentsMITTS
call-bind-apply-helpersnpm

Helper functions around Function call/apply/bind, for use in `call-bind`

0/wk3 dependentsMITTS
is-bigintnpm

Is this value an ES BigInt?

0/wk1 dependentsMITTS
is-mapnpm

Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

0/wk1 dependentsMITTS
is-setnpm

Is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

0/wk1 dependentsMITTS
side-channelnpm

Store information about any JS value in a side channel. Uses WeakMap if available.

0/wk3 dependentsMITTS
define-data-propertynpm

Define a data property on an object. Will fall back to assignment in an engine without descriptors.

0/wk2 dependentsMITTS
qsnpm

A querystring parser that supports nesting and arrays, with a depth limit

0/wk4 dependentsBSD-3-Clause
side-channel-listnpm

Store information about any JS value in a side channel, using a linked list

0/wk1 dependentsMITTS

Relationship graph

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

Frequently installed together

Release history

1 release in the last two years, typically about 138 days apart.

Recent versions of object-inspect
VersionPublishedSizeLicense
1.13.4latest1 year ago101 KBMIT
1.13.31 year ago99 KBMIT
1.13.22 years ago97 KBMIT
1.13.12 years ago95 KBMIT
1.13.02 years ago95 KBMIT
1.12.33 years ago93 KBMIT
1.12.24 years ago91 KBMIT
1.12.14 years ago89 KBMIT
1.12.04 years ago88 KBMIT
1.11.14 years ago82 KBMIT
1.11.05 years ago55 KBMIT
1.10.35 years ago54 KBMIT
1.10.25 years ago51 KBMIT
1.10.15 years ago51 KBMIT
1.10.05 years ago50 KBMIT

Overview

object-inspect is an npm package that string representations of objects in node and the browser. It has 24 known dependents in the graph. The latest version is 1.13.4, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need string representations of objects in node and the browser and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, 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

  • Large dependency tree (24 direct dependencies) increases install size and audit surface.
  • 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-inspect?

object-inspect is usable, with caveats. Last published 582 days ago. 2 releases in the last 2 years.

How do I install object-inspect?

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

What license is object-inspect released under?

object-inspect is distributed under the MIT license.

How popular is object-inspect?

npm does not publish download counts. Within PackageGraph's crawl, 24 known packages depend on object-inspect.

Is object-inspect still maintained?

The most recent release of object-inspect (v1.13.4) was published 1 year ago.

Does object-inspect run install scripts?

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