Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iendeavor/object-visualizer

Vue JSON inspector with Chrome-like theme.
https://github.com/iendeavor/object-visualizer

inspector json tree-view visualizer vue

Last synced: 1 day ago
JSON representation

Vue JSON inspector with Chrome-like theme.

Awesome Lists containing this project

README

        

# Object Visualizer

A vue component to visualize the JSON object to the DOM.

## Live Demo

[![As same as Chrome's object tree](./dark.png)](https://codesandbox.io/s/object-visualizer-5bji4)
[![As same as Chrome's object tree](./light.png)](https://codesandbox.io/s/object-visualizer-5bji4)

## Feature

- `getKeys`: customize visible keys in any nested data
- `expandOnCreatedAndUpdated`: expand or collapse after created or updated

> Starting from v4.0.0, this feature is only available for objects due to performance issues.

- Recursive expand `Meta+Click`
- Recursive collapse `Meta+Shift+Click`

- Light/Dark mode

## Installation

### NPM

```
$ npm install object-visualizer
```

```ts
import { ObjectVisualizer } from 'object-visualizer'
import 'object-visualizer/dist/index.min.css'
```

### CDN

```html

const { ObjectVisualizer } = window.ObjectVisualizer

```

## Usage

```vue

```

## About

Buy Me A Coffee

Distributed under the MIT license. See LICENSE for more information.

https://github.com/iendeavor