* Ignore * Create biome.json * Ignore * biome * [autofix.ci] apply automated fixes --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
node-inspect-extracted
Vendored copy of node-inspect-extracted with adaptations for Bun. Some features not relevant to Bun have been removed. Others might be added or modified.
This library provides an as-faithful-as-possible implementation of Node.js's
util.inspect function.
This is currently done for compatibility reasons. In the future, this should be replaced with a 100% native implementation.
API
The following util functions:
inspect(object[,showHidden|options[,depth [, colors]]])format(format[, ...args])formatWithOptions(inspectOptions, format[, ...args])
Known Limitations
- Objects that have been mangled with
Object.setPrototypeOfdo not retain their original type information. [bug] WeakMapandWeakSetwill not show their contents, because those contents cannot be iterated over in unprivileged code.- Colorful stack traces are not completely accurate with respect to what modules are Node-internal. This doesn't matter on the Web.
LICENSE
This code is an adaptation of the Node.js internal implementation, mostly from the file lib/internal/util/inspect.js, which does not have the Joyent copyright header. The maintainers of this package will not assert copyright over this code, but will assign ownership to the Node.js contributors, with the same license as specified in the Node.js codebase; the portion adapted here should all be plain MIT license.