What it is
Svelte Inspect Value is a "JSON tree"-like value inspector.
The main purpose of the component is to be a developer utility. When developing apps it can be
useful to have a "live" preview of state like API data, form values, the state of a promise and so
on.
Features
The examples page is the quickest way to get an overview of what this component can do, but here is a list of its key features:
- Display arrays & objects in a tree-like view
- Support for most JavaScript built-ins, including
Set
andMap
- Syntax highlighting for functions and html elements (outer selector) using
hljs
- Embed media if string ends with image / audio extension (optional)
- Customizable colors
- Configurable with global options utiltiy as alternative to passing props