Provides string representations of JavaScript objects for both Node.js and browser environments. Useful for inspecting values in logs and debugging, including handling circular references and DOM elements, via an `inspect(obj, opts)` function with options like depth and string formatting.
Project status
- The upstream repository appears to have ongoing activity (last upstream push on 2026-04-26), but the most recently documented package updates are from 2021-05-08 (v1.10.1 to v1.10.3).
- Based on the available update history, the apparent updates cadence is low, with a brief cluster of patch updates on the same day in May 2021, and no evidence of subsequent version updates in the provided data.
AI summary generated Today
Recent updates
v1.10.3
5/8/2021v1.10.3 is a patch release that claims to fix inspection behavior when running under core-js Symbol shams. The code changes specifically detect shammed Symbol.iterator/boxing behavior and adjust symbol inspection and object key handling to avoid incorrect symbol formatting.
v1.10.2
5/8/2021v1.10.2 updates the object inspection logic in `object-inspect` to use more robust checks around Symbols, especially to prevent boxed or spoofed Symbol-like values from being misidentified. The release notes only mention boxed Symbol handling, but the code changes also tighten other type/tag detection paths that can affect inspection output.
v1.10.1
5/8/2021v1.10.1 updates object-inspect's BigInt detection to use a more robust runtime check for boxed BigInt-like objects. The change also adds coverage to ensure objects that spoof Symbol.toStringTag as 'BigInt' are not misidentified as BigInt primitives.
v1.10.0
5/8/2021v1.10.0 of object-inspect adds support for inspecting WeakRef objects and improves how inspection output reflects Symbol.toStringTag, including for instances and null-prototype objects. The change also prevents Symbol.toStringTag from causing non-builtins to be treated as built-in types (for example, masquerading an object as an Array).
Featuresv1.9.0
5/8/2021v1.9.0 updates object-inspect output to better match Node’s assert behavior, including showing enumerable symbol properties and enumerable function properties, and uppercasing hex escapes in strings. It also includes test and CI workflow migrations plus dev dependency updates.
BreakingFeaturesv1.8.0
8/29/2020v1.8.0 adds several new `inspect` options, including `indent`, `customInspect`, and `maxStringLength`, plus formatting and correctness fixes (anonymous functions, array truncation, and resisting spoofed `Function.prototype.toString`). The implementation also expands test and CI coverage for dates, regexps, weak collections, and indentation behavior.
Featuresv1.7.0
8/29/2020v1.7.0 adds support for inspecting WeakMap and WeakSet objects, alongside a small refactor to speed up Map and Set detection. It also updates dev tooling, CI configuration, and test scripts, including linting and running `npx aud` in `posttest`.
Featuresv1.6.0
8/25/2019v1.6.0 adds support for inspecting BigInt values, including both primitive BigInts and boxed BigInt objects. It also updates dev dependencies (core-js, tape), extends CI test coverage to include a bigint test run with Node's --harmony-bigint flag, and updates the documentation example to use safer-buffer APIs.
Featuresv1.5.0
8/25/2019v1.5.0 adds support for a new `quoteStyle` option to control whether strings (and some markup attributes) are rendered with single or double quotes. It also updates the CI test matrix to require Node 0.6 and adds additional test coverage around the new option.
Featuresv1.4.1
8/25/2019v1.4.1 fixes formatting of boxed negative zero so `inspect(Object(-0))` returns `"Object(-0)"` instead of `"Object(0)"`. It also updates the CI test matrix to run against newer Node.js versions (up to 9.3, 8.9, and 6.12 as noted).