object-visualizer
Object Visualizer
A vue component to visualize the JSON object to the DOM.
Live Demo
Feature
-
getKeys: customize visible keys in any nested data -
expandOnCreatedAndUpdated: expand or collapse after created or updatedStarting from v4.0.0, this feature is only available for objects due to performance issues.
- Recursive expand
Meta+Click - Recursive collapse
Meta+Shift+Click
- Recursive expand
-
Light/Dark mode
Installation
NPM
$ npm install object-visualizer
import { ObjectVisualizer } from 'object-visualizer'
import 'object-visualizer/dist/index.min.css'
CDN
<script src="https://unpkg.com/object-visualizer"></script>
<link
type="text/css"
rel="stylesheet"
href="https://unpkg.com/object-visualizer/dist/index.min.css"
/>
<script>
const { ObjectVisualizer } = window.ObjectVisualizer
</script>
Usage
<ObjectVisualizer
:data="['foo', 'bar']"
rootName="Data"
:expandOnCreatedAndUpdated="(path) => false"
:getKeys="(object, path) => Object.keys(object)"
></ObjectVisualizer>
License
Donate
If this library helped you out feel free to donate.
Related Packages
vue-dd
Vue.js component for displaying JavaScript objects with circular references, for...
17,539
17
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 5.0.0 | ^3.2.39 | MIT | |
| 4.1.0 | ^3.0.2 | MIT | |
| 4.0.0 | ^3.0.2 | MIT | |
| 3.1.1 | ^3.0.2 | MIT | |
| 3.1.0 | ^3.0.2 | MIT | |
| 3.0.1 | ^3.0.2 | MIT | |
| 3.0.0 | ^3.0.2 | MIT | |
| 2.2.0 | ^3.0.2 | MIT | |
| 2.1.3 | next | MIT | |
| 2.1.2 | next | MIT | |
| 2.1.1 | ^3.0.0-beta.20 | MIT | |
| 2.1.0 | ^3.0.0-beta.20 | MIT | |
| 2.0.1 | ^3.0.0-beta.20 | MIT | |
| 2.0.0 | ^3.0.0-beta.20 | MIT | |
| 1.1.0 | ^3.0.0-beta.20 | MIT | |
| 1.0.0 | ^3.0.0-beta.20 | MIT | |
| 0.5.1 | ^3.0.0-beta.20 | MIT | |
| 0.5.0 | ^3.0.0-beta.20 | MIT | |
| 0.4.0 | ^3.0.0-beta.20 | MIT | |
| 0.3.0 | ^3.0.0-beta.20 | MIT | |
| 0.2.2 | ^3.0.0-beta.20 | MIT | |
| 0.2.1 | ^3.0.0-beta.20 | MIT | |
| 0.2.0 | ^3.0.0-beta.20 | MIT | |
| 0.1.2 | ^3.0.0-beta.20 | MIT | |
| 0.1.1 | ^3.0.0-beta.20 | MIT | |
| 0.1.0 | ^3.0.0-beta.20 | MIT | |
| 0.0.2 | ^3.0.0-beta.20 | MIT | |
| 0.0.1 | ^3.0.0-beta.20 | MIT |
Pre-releases (6)
| Version | Released | Vue | License |
|---|---|---|---|
| 5.0.0-beta.5 | ^3.2.39 | MIT | |
| 5.0.0-beta.4 | ^3.2.39 | MIT | |
| 5.0.0-beta.3 | ^3.2.39 | MIT | |
| 5.0.0-beta.2 | ^3.2.39 | MIT | |
| 5.0.0-beta.1 | ^3.2.39 | MIT | |
| 5.0.0-beta.0 | ^3.2.39 | MIT |

