You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This utility pretty prints the tree in a format that is made custom for unist
trees, which is terser than the often verbose and repetitive JSON,
to more easily spot bugs and see what’s going on in the tree.
Install
This package is ESM only.
In Node.js (version 16+), install with npm:
Inspect a tree, with color.
Otherwise same as inspect.
inspectNoColor(tree[, options])
🪦 Deprecated: use color option of inspect.
Inspect a tree, without color.
Otherwise same as inspect.
Options
Configuration (TypeScript type).
Fields
color (boolean, default: true in Node, false otherwise)
— whether to use ANSI colors
showPositions (boolean, default: true)
— whether to include positional information
Types
This package is fully typed with TypeScript.
It exports the additional type Options.
Compatibility
Projects maintained by the unified collective are compatible with maintained
versions of Node.js.
When we cut a new major release, we drop support for unmaintained versions of
Node.
This means we try to keep the current release line, unist-util-inspect@^8,
compatible with Node.js 16.