object-inspect
npmv1.13.4string representations of objects in node and the browser
Overview
object-inspect is an npm package that string representations of objects in node and the browser. 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.
Relationship graph
Dependencies (left) and dependents (right) of object-inspect.
Dependencies
Dev (24)
Used by
Popular packages that depend on object-inspect.
A querystring parser that supports nesting and arrays, with a depth limit
Store information about any JS value in a side channel. Uses WeakMap if available.
Programmatic access to the ARIA specification
Programmatic access to information about the AXObject Model
Get an iterator for any JS language value. Works robustly across all environments, all versions.
Get and robustly cache all JS language-level intrinsics at first require time
ES6 spec-compliant RegExp.prototype.flags shim.
Which kind of boxed JS primitive is this?
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Robustly `.call.bind()` a function
Is this value a JS SharedArrayBuffer?
Set a function's name property
Set a function's length property
Helper functions around Function call/apply/bind, for use in `call-bind`
Is this value an ES BigInt?
Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Store information about any JS value in a side channel, using a linked list
Store information about any JS value in a side channel, using a Map
Store information about any JS value in a side channel. Uses WeakMap if available.
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Alternatives to object-inspect
Serialize/deserialize an error into a plain object
A querystring parser that supports nesting and arrays, with a depth limit
`Object.defineProperty`, but not IE 8's broken one.
A small polyfill for Object.setprototypeof
Merge objects using their property descriptors
Really Fast Deep Clone
An optimised way to copy'ing an object. A small and simple integration
Stringify your JSON at max speed
Is this an arguments object? It's a harder question than you think.
html formatter yo! Prettify or minify html.
Check if a value is a plain object
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Frequently installed together
An AST-based pattern checker for JavaScript.
A simple cache for a few of the JS Error constructors.
Get and robustly cache all JS language-level intrinsics at first require time
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
`Object.defineProperty`, but not IE 8's broken one.
Implementation of Function.prototype.bind
Robustly `.call.bind()` a function
Helper functions around Function call/apply/bind, for use in `call-bind`
Store information about any JS value in a side channel, using a Map
A robust, ES3 compatible, "has own property" predicate.
Turn JSX into React function calls
Version history
| Version | Published | License |
|---|---|---|
| 1.13.4latest | 1 year ago | MIT |
| 1.13.3 | 1 year ago | MIT |
| 1.13.2 | 2 years ago | MIT |
| 1.13.1 | 2 years ago | MIT |
| 1.13.0 | 2 years ago | MIT |
| 1.12.3 | 3 years ago | MIT |
| 1.12.2 | 4 years ago | MIT |
| 1.12.1 | 4 years ago | MIT |
| 1.12.0 | 4 years ago | MIT |
| 1.11.1 | 4 years ago | MIT |
| 1.11.0 | 5 years ago | MIT |
| 1.10.3 | 5 years ago | MIT |
| 1.10.2 | 5 years ago | MIT |
| 1.10.1 | 5 years ago | MIT |
| 1.10.0 | 5 years ago | MIT |
| 1.9.0 | 5 years ago | MIT |
| 1.8.0 | 6 years ago | MIT |
| 1.7.0 | 6 years ago | MIT |
| 1.6.0 | 8 years ago | MIT |
| 1.5.0 | 8 years ago | MIT |
Funding
Frequently asked questions
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?
object-inspect has approximately 0 downloads per week and 4 known dependent packages.